Search found 4 matches

by dave007
2016-01-25T14:44:13-07:00
Forum: IMagick
Topic: imagick - how to find coordinates of edges in an image ?
Replies: 8
Views: 16420

Re: imagick - how to find coordinates of edges in an image ?

i ended up doing what amounts to that, yes. i posted over on stackexchange and got a similar suggestion. it turns out it is surprisingly simple. for the image as described, $im = new Imagick(realpath('./image.jpg')); $im->trimImage(0); $pagedata = $im->getImagePage(); $im->setImagePage(0, 0, 0, 0 ...
by dave007
2016-01-22T15:15:55-07:00
Forum: IMagick
Topic: imagick - how to find coordinates of edges in an image ?
Replies: 8
Views: 16420

Re: imagick - how to find coordinates of edges in an image ?

@bonzo - thanks for the heads-up, i didn't know the development teams were different. @snibgo - yes, always parallel. if i can't find a way to do this w/o resorting to a system call -- whether it's system() or exec() makes little difference -- then i'll use his solution, it seemed to do exactly what ...
by dave007
2016-01-22T13:23:41-07:00
Forum: IMagick
Topic: imagick - how to find coordinates of edges in an image ?
Replies: 8
Views: 16420

Re: imagick - how to find coordinates of edges in an image ?

thanks, mw42. Looks to me the OP wants an Imagick method and not a command line one. If that is the case dave007 you may have a problem as Imagick does not have all the functionality of Imagemagick. that is correct. the app is in php. is there a way i could do this in imagick ? if there's a way to ...
by dave007
2016-01-22T12:22:31-07:00
Forum: IMagick
Topic: imagick - how to find coordinates of edges in an image ?
Replies: 8
Views: 16420

imagick - how to find coordinates of edges in an image ?

given an image composed of a plain black field with a single white rectangle inside it somewhere, how can i extract the coordinates of the rectangle ? i've googled and googled and found numerous articles on edge detection using hough lines, convolution, morphology, etc., but all of these actually ...