Page 1 of 1

how i could color of a specific color instead remove blobs in connected components?

Posted: 2017-09-07T07:15:02-07:00
by diegomage
this is my code

IM trying with mean color but not work

Code: Select all

connected-components:mean-color=srgb\(0,0,255\)

Code: Select all

convert v10.png    -define connected-components:area-threshold=64 -define connected-components:mean-color=srgb\(0,0,255\) -connected-components  8  v1x1.png
this is my image
Image


this is my expected result
Image


please help me

Re: how i could color of a specific color instead remove blobs in connected components?

Posted: 2017-09-07T10:55:29-07:00
by fmw42
The define for mean color only says that the output should represent the mean color of the region. If you do not use that, then the output image gray levels would be the id numbers for each region.

By using -define connected-components:area-threshold=64, you are telling connected components to remove all regions that have an area smaller than 64 pixels.

I am not sure what you are trying to do. Please clarify further.