Watch out for the warning I give about doing masking with a red hue. See IM Examples, Photo Handling, Chroma Key MaskingĮssentially you create a mask to use it as a composition mask (as the above shows) to limit the effect of other global color change operations. However there are masking techniques that can be used. It is a direct color replacement.Īt this time their is no 'shaded' or 'color vector' color replacement operator. If you are on Linux/Mac or Windows with Cygwin, you might try my script, huemap, at the link below.Īshwini wrote:I got the output which was not bad.but it doesn't look natural means there is light appearing on capsicum in original image and the resulted image is not giving proper color change.also the some part of red capsicum is not change due to shading of color as i am using command for single color replacement. Where did you get the "correct" looking image? How was it created? If we know that, then perhaps there would be a way to get IM to do something similar. Of course getting the right mask is not easy as the same techniques for isolating it are what you are using to change the color. Then use the mask to combine the original and processed image so that you get the color you want for the white part of the mask the original image for the black part of the mask. Then process the image to change the hue only via -modulate so that the parts you want are the color you want. You may want to try to mask the image to show only the parts you want changed. ![]() With regard to your color issue, the white areas inside the red->purple are too far from red so they are not caught by the color replacement. I got the output which was not bad.but it doesn't look natural means there is light appearing on capsicum in original image and the resulted image is not giving proper color change.also the some part of red capsicum is not change due to shading of color as i am using command for single color replacement.Īlso i wanted to know that is there is any way to get the region of same color in text file in the form of co-ordinates or other way I change the name of image for simplicity. floodfill" command but in this, the offset need to be specified manually which I don’t want.įor more clarification this is the source image and I want to replace the regions which has red color to purple not giving the offset or co-ordinates manually.Ĭonvert veg.png -fuzz 15% -fill "#601848" -opaque "#c03030" cveg.png ![]() You are right there is no change in output image after encoding color in quote.Īs you posted the links : I tried the -draw "color.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |