Image Cropping

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
gowribala
Posts: 14
Joined: 2013-06-03T02:43:37-07:00
Authentication code: 6789

Image Cropping

Post by gowribala »

Hi...
I am new to image processing.

My original image size is 640x480, i need to cut it into 400x400 without losing my region of interest.

My region of interest having low pixel intensity values and around this area having high intensity value.

Ex:Eye image,my region of interest is pupil and iris portion of eye.

please guide me how can i get this area in size of 400x400 .
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image Cropping

Post by fmw42 »

please post a link to an example image so we can experiment to come up with a good solution

using the IM compare and a suitable 400x400 mask representing the region of interest would appear to be the best solution without seeing an example.

see
http://www.imagemagick.org/script/compare.php
http://www.imagemagick.org/Usage/compare/
http://www.imagemagick.org/Usage/compare/#statistics
viewtopic.php?f=1&t=14613&p=51076&hilit ... ric#p51076 (add -subimage-search)
Post Reply