Proper convert syntax has the input image right after "convert"
convert input ...options... output
It looks to me that you have too many outputs. What is photo1.jpg? I
assume photo.jpg is your input and photo.txt is the text file.
I am not sure you are not getting everything output to your text file
and not just the values that match. I am no expert on unix to tell
you how to get this output to a file. I tried and have not come up
with a good solution, yet.
But with regard to limiting your search to the center. You can do
that as follows:
convert rose: -gravity center -crop 40x40+0+0 -type Grayscale -fx
"u==1?debug(u):1; u" null:
this gives you a search only in the center 40x40 region
Hello Fred,
That seems to do the trick regarding Brightest Pixel as I am able to pull
out the intended data to use in quite a few places in the application. I am
currently dumping the pixel values to a file then searching and storing
values from that point.
I am currently using:
convert -type Grayscale -fx "u==1?debug(u):1; u" photo.jpg photo.txt
photo1.jpg
I am now attempting to limit my pixel dump to the center of the image, I
imagine I can do this by giving a rad value and performing the search from
that point.
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users