The function is being called in a library inside a loop and it works fine a few times (twice).
Is there any way of deallocating the memory after operations have been performed on an image ?
My code is below:
Code: Select all
Image imageMagic(imagePath);
imageMagic.crop(Geometry(699, 150, 198, 625));
imageMagic.write(labelName);