Oh, so it's why it responded nothing for this picture. I've thought it's a bug. Thanks for figuring it out for me !fmw42 wrote:That is because every pixel has some partial transparency. Sparse-color: will only report perfectly opaque pixels.
Search found 10 matches
- 2013-03-26T20:08:24-07:00
- Forum: Users
- Topic: Detect coordinates of "colored-blocks" among white baground?
- Replies: 13
- Views: 12536
Re: Detect coordinates of "colored-blocks" among white bagro
- 2013-03-25T23:29:57-07:00
- Forum: Users
- Topic: Detect coordinates of "colored-blocks" among white baground?
- Replies: 13
- Views: 12536
Re: Detect coordinates of "colored-blocks" among white bagro
"sparse-color:" is ok for some picture, but respond nothing for some, like this picture :


- 2013-03-25T19:05:23-07:00
- Forum: Users
- Topic: Detect coordinates of "colored-blocks" among white baground?
- Replies: 13
- Views: 12536
Re: Detect coordinates of "colored-blocks" among white bagro
the minus means send to standard out. You can leave the minus off. Try that and see if both work. If not, post a link to the file that does not work, so others can test with it.
I tried these commands, but nothing was responded :
convert ZA.png -fuzz 80% -transparent white sparse-color ...
I tried these commands, but nothing was responded :
convert ZA.png -fuzz 80% -transparent white sparse-color ...
- 2013-03-25T00:30:52-07:00
- Forum: Users
- Topic: Detect coordinates of "colored-blocks" among white baground?
- Replies: 13
- Views: 12536
Re: Detect coordinates of "colored-blocks" among white bagro
I've just tried this command with 2 png files. 1st one ok, the 2nd png give me this error :fmw42 wrote: convert image -fuzz XX% -transparent white sparse-color:-
Code: Select all
convert.exe : no decode delegate for this image format '-' @ error/constitute.c/ReadImage/550.- 2013-03-24T20:40:58-07:00
- Forum: Users
- Topic: Detect coordinates of "colored-blocks" among white baground?
- Replies: 13
- Views: 12536
Re: Detect coordinates of "colored-blocks" among white bagro
Thank you snibgo for the instruction & link.
Do you want just the upper left corner and bounds of the region or do you want to see the coordinates of every pixel that is not white? Yes, I need the coordinate of every pixel.
The latter can be done by simply using txt:- and filtering out all ...
Do you want just the upper left corner and bounds of the region or do you want to see the coordinates of every pixel that is not white? Yes, I need the coordinate of every pixel.
The latter can be done by simply using txt:- and filtering out all ...
- 2013-03-24T01:31:56-07:00
- Forum: Users
- Topic: Detect coordinates of "colored-blocks" among white baground?
- Replies: 13
- Views: 12536
Detect coordinates of "colored-blocks" among white baground?
My first question at imageMagick forum was honestly answered by very kind experts.
I hope my 2nd one will be the same. And once again, please correct me if I say something stupid :?
My problem was a bit complicated :
I have some colored texts & graphics on white background, like islands over the ...
I hope my 2nd one will be the same. And once again, please correct me if I say something stupid :?
My problem was a bit complicated :
I have some colored texts & graphics on white background, like islands over the ...
- 2013-03-24T01:05:30-07:00
- Forum: Users
- Topic: Turn a set of pixels into grayscale ?
- Replies: 8
- Views: 6761
Re: Turn a set of pixels into grayscale ?
convert ^
X.png ^
-set colorspace RGB ^
( +clone -channel Alpha -separate -write mpr:saveAlpha +delete ) ^
( +clone -modulate 100,0,100 mask.txt -compose CopyOpacity -composite -channel Alpha -negate ) ^
-compose Over -composite ^
-channel RGBA ^
-separate ^
mpr:saveAlpha ^
-delete 3 ...
- 2013-03-23T21:40:07-07:00
- Forum: Users
- Topic: Turn a set of pixels into grayscale ?
- Replies: 8
- Views: 6761
Re: Turn a set of pixels into grayscale ?
Could you help me please?
I'm not going to fill the point x,y with gray, but going to CONVERT POINT X,Y TO GRAYSCALE.
Maybe not this :
convert image -fill gray -draw "$string" resultimage
But something like this :
convert image -toGrayScale "$string" resultimage
Thanks a lot !
I'm not going to fill the point x,y with gray, but going to CONVERT POINT X,Y TO GRAYSCALE.
Maybe not this :
convert image -fill gray -draw "$string" resultimage
But something like this :
convert image -toGrayScale "$string" resultimage
Thanks a lot !
- 2013-03-23T19:46:11-07:00
- Forum: Users
- Topic: Turn a set of pixels into grayscale ?
- Replies: 8
- Views: 6761
Re: Turn a set of pixels into grayscale ?
Thanks snibgo, but it seems that you misunderstood my question.
Please read my updated question. Thanks again.
Please read my updated question. Thanks again.
- 2013-03-23T10:22:22-07:00
- Forum: Users
- Topic: Turn a set of pixels into grayscale ?
- Replies: 8
- Views: 6761
Turn a set of pixels into grayscale ?
Hi all. This is my first post, thus please forgive my mistakes & my english. I need your helps with this situation:
I have a file with many points' coordinate. The file's content looks like this :
color 1224,257 point color 1224,259 point color 1050,256 point color 1057,256 point color 1058,256 ...
I have a file with many points' coordinate. The file's content looks like this :
color 1224,257 point color 1224,259 point color 1050,256 point color 1057,256 point color 1058,256 ...