<<
The original picture is any TIFF file.
There are about 5 known points (x,y).
Now I have to create a new picture in which the
section (accordingly to the position of the 5 points
in the TIFF) inside the 5 point polygon have to be
stored.
Is this possible with IM? I hope you can help and
particularly understand me. Thanks a lot!
Sven>>
If I understand well the problem is to copy part of an
Image inside a polygon onto an other image.
AFAIK there is no command line resolution for that,
but using any program interfaced to ImageMagick you
can
load the image to ImageMagick, scan it bit by bit and
if the scanned point is inside the polygon use
Get("pixel[x,y]") and Set("pixel[x,y]->color")
commands to copy the pixel to the other image.
The google has plenty of "inside a polygon"
algorithms.
If the 'other image' is a transparent rectangle, then
the result will be shown as a cut image.
laszlo
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users