how i could remove hidden color for this 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
diegomage
Posts: 164
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

how i could remove hidden color for this image ?

Post by diegomage » 2017-09-25T17:47:33-07:00

this image appears normal apparently

Image

but when i apply connected components remove 200 area


appears this

Code: Select all

 convert  imaget.jpg  -define connected-components:area-threshold=200 -define connected-components:mean-color=true -connected-components 8 out.png 
Image



I expected obtain only rect images not distorted image
please help me whit this

diegomage
Posts: 164
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: how i could remove hidden color for this image ?

Post by diegomage » 2017-09-25T18:02:13-07:00

I check my image and I see that using this command can solve the problem

Code: Select all

  convert   image .jpg +dither   -posterize 2       color_uniform.gif
I dont view the colors when I use erode command

User avatar
fmw42
Posts: 21873
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: how i could remove hidden color for this image ?

Post by fmw42 » 2017-09-25T18:52:27-07:00

If you are trying to remove the thin white lines using -connected-components, that will not work, since each white line is connected to the large white region and the top

diegomage
Posts: 164
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: how i could remove hidden color for this image ?

Post by diegomage » 2017-09-25T19:28:02-07:00

hi I refer that i solve whit this last command I post because I dont see the color with low intensity and I change this colors with posterize


thankyou for the help

Post Reply