I want to remove the black pixels part of a group of pixel with less than 5 pixels, whatever the pattern is.
Here is a file, I want to remove the black isolated pixels.
http://farm4.staticflickr.com/3772/9015573718_f34d0cea74_o_d.gif
Of course I want to keep the three pattern on the bottom left ...
Search found 5 matches
- 2013-06-11T04:07:59-07:00
- Forum: Users
- Topic: Basic pixel removal in black and white picture
- Replies: 14
- Views: 15149
- 2013-06-10T14:55:18-07:00
- Forum: Users
- Topic: Basic pixel removal in black and white picture
- Replies: 14
- Views: 15149
Re: Basic pixel removal in black and white picture
I understand the one pixel surrounded well.
But my problem is if there is more than one pixel I can't target the whole pattern.
In your exemple in the second message :
convert ^
test.png ^
-negate ^
-morphology Thinning ^
"3x4:0,0,0, 0,1,0, 0,1,0, 0,0,0" ^
-negate ^
test4.png
But in fact ...
But my problem is if there is more than one pixel I can't target the whole pattern.
In your exemple in the second message :
convert ^
test.png ^
-negate ^
-morphology Thinning ^
"3x4:0,0,0, 0,1,0, 0,1,0, 0,0,0" ^
-negate ^
test4.png
But in fact ...
- 2013-06-10T04:22:13-07:00
- Forum: Users
- Topic: Basic pixel removal in black and white picture
- Replies: 14
- Views: 15149
Re: Basic pixel removal in black and white picture
Ok, thx for your answers.
I had some time to check this out but it's still unclear for me. :p
I got a lot of things work with Thicken, but is there a way to be more clear about it.
For instance :
If I have :
000
010
010
010
000
and I want to remove if this pattern is matched.
I did ...
I had some time to check this out but it's still unclear for me. :p
I got a lot of things work with Thicken, but is there a way to be more clear about it.
For instance :
If I have :
000
010
010
010
000
and I want to remove if this pattern is matched.
I did ...
- 2013-06-09T07:16:13-07:00
- Forum: Users
- Topic: Basic pixel removal in black and white picture
- Replies: 14
- Views: 15149
Re: Basic pixel removal in black and white picture
hello,
thank you that's awesome !!
...
now that I have you, do you know if it's possible to do the same thing but with several pixels ?
Detect for instance 2 isolated pixels ?
this pattern for example :
000
010
010
000
or
0000
0110
0000
thank you that's awesome !!
...
now that I have you, do you know if it's possible to do the same thing but with several pixels ?
Detect for instance 2 isolated pixels ?
this pattern for example :
000
010
010
000
or
0000
0110
0000
- 2013-06-09T04:59:52-07:00
- Forum: Users
- Topic: Basic pixel removal in black and white picture
- Replies: 14
- Views: 15149
Basic pixel removal in black and white picture
Hello everyone,
it's my first topic on this website.
I play with imagemagick from times to times but now I'm stuck with a very simple task.
I have an image in black and white. (gif converted with -monochrome)
I want to remove isolated black pixels, so : remove black pixels surrounded by 8 white ...
it's my first topic on this website.
I play with imagemagick from times to times but now I'm stuck with a very simple task.
I have an image in black and white. (gif converted with -monochrome)
I want to remove isolated black pixels, so : remove black pixels surrounded by 8 white ...