I want to colorize the white part of an image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: I want to colorize the white part of an image

Post by anthony »

there is no simple way for IM or any other image processor to separate the parts your want to color and the parts you don't.

The best idea is to generate a mask, either use some advanced image segmentation method (which IM has not gone into yet) or use an editor to generate a mask of the area you want colored.

IM can then color images using that mask to what ever color you want. You can even '-compose Overlay' images for different effects too, though that works better with a grey starting image.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply