Re: complex color conversion problem
Posted: 2013-02-05T01:40:04-07:00
Hello,
I'm trying to use this same technique to remove the green background in this image but have not been able to figure it out.
Here's what I have so far:
I have tried a ton of different values for fuzz and gray with no luck. Here's the closest I get:
You can see I'm using a very low fuzz. The detail in the bicycle wheel is completely gone. When I add smoothing, it gets even worse. What am I missing here? Why would the black spokes as well as her black jacket be included in the mask that's green?
Secondary question, after running separate Hue, how do I figure out the "gray" value without guessing? I have Photoshop but can't seem to figure out the mapping.
Thanks
I'm trying to use this same technique to remove the green background in this image but have not been able to figure it out.
Here's what I have so far:
Code: Select all
convert s4.jpg -colorspace HSL -channel Hue -separate -background none -fuzz 16% +transparent "gray(48%
)" -alpha extract -compose multiply -morphology Smooth Square:6 s4key.jpg
Code: Select all
convert s4.jpg -colorspace HSL -channel Hue -separate -background none -fuzz 2% +transparent "gray(84)"
-alpha extract -compose multiply s4key.jpg
Secondary question, after running separate Hue, how do I figure out the "gray" value without guessing? I have Photoshop but can't seem to figure out the mapping.
Thanks