I am storing images in my own image format and converting them to magick++ for file/save operations.
When I use writeImages() on lets say 7 images, I have to store 7 times as much pixel data in memory into a STL container in order to call writeImages(). Even though magick++ is reference counted, it can't share with my image data right?
Code: Select all
//Loop through myImages (a vector<myImage>) and convert all to a magick++ and store in vector
vector<Image> magickImages = ConvertToMagicks(myImages);
writeImages(magickImages.begin(), magickImages.end(), "c:/image.tif"); //so much memory being used here