Hi.... I would like to extract only pointer(red) from the gauges image....
If we consider the below image for example how I can extract the pointer alone from the image?
How to add mask(entire black) to the gauges background and extract the pointer alone?
Iam using 6.9.1-1 ImageMagick Commandline on windows platform.
Can someone help me?
How to extract specific color using command line
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to extract specific color using command line
try this -- adjust the fuzz value to suit. Unix syntax --- do not know if % needs to be %% in Windows.
Code: Select all
convert 14jc7f4.jpg -channel rgba -fuzz 20% -fill none +opaque red result.png
Re: How to extract specific color using command line
Thanks alot.. it works for the above pic...
Can I trim the edges along the pointer image to get the sharpen image...?
Can I trim the edges along the pointer image to get the sharpen image...?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to extract specific color using command line
What does trimming have to do with sharpening? What is it that you want?
If you want to trim add just before the output image
-fuzz XX% -trim +repage
choose XX as desired
See
http://www.imagemagick.org/Usage/crop/#trim
If you want to trim add just before the output image
-fuzz XX% -trim +repage
choose XX as desired
See
http://www.imagemagick.org/Usage/crop/#trim
Re: How to extract specific color using command line
hi I am sorry that I didnt make it clear.... when we do the fuzz we get pointer image ... we get boxes around the pointer image.... I want to eliminate that....
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to extract specific color using command line
Did you try my command above