yes, it seems that my syntax is a bit off, i will be adjusting it, however it does seem to dump the gray scale (photo1) and txt file fine at the minute. The cropping seems to work a charm as it limits the amount of data which can be quite large in some higher resolution images.
Fred Weinhaus wrote: > > 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 > -- View this message in context: http://www.nabble.com/Brightest-Pixel-Location-tp16714370p16722775.html Sent from the Magick-users mailing list archive at Nabble.com. _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
