Select rectangular region -- Clone & Crop?
Posted: 2019-08-18T13:30:51-07:00
Hello everyone,,
Is Clone & Crop the only way to get a rectangular region from an image (leaving the original intact)??
(something like
$original=Image::Magick->[whichever way];
$rectangle=$original->Clone();
$rectangle->Crop(geometry=>'80x80+25+50'); )
Is there a way to get/select a rectangular region without having to clone the whole thing first? Or perhaps the overhead is not as scary as I imagine it might be?
I mean, if you're dealing with 100MB (uncompressed) images, and you want to process 1000 rectangular regions... seems like a waste of CPU
It also seems like, with ImageMagick being so versatile and powerful, it would have a more runtime-efficient alternative.
I haven't thoroughly explored the differences yet, but, on cursory research, GTK2 might do this, with its pixel buffers
Is Clone & Crop the only way to get a rectangular region from an image (leaving the original intact)??
(something like
$original=Image::Magick->[whichever way];
$rectangle=$original->Clone();
$rectangle->Crop(geometry=>'80x80+25+50'); )
Is there a way to get/select a rectangular region without having to clone the whole thing first? Or perhaps the overhead is not as scary as I imagine it might be?
I mean, if you're dealing with 100MB (uncompressed) images, and you want to process 1000 rectangular regions... seems like a waste of CPU
It also seems like, with ImageMagick being so versatile and powerful, it would have a more runtime-efficient alternative.
I haven't thoroughly explored the differences yet, but, on cursory research, GTK2 might do this, with its pixel buffers