Hi,
I would like to generate a mult-image TIFF file,
like in the example below.
Currently this is not supported in ROOT 5.19.02.
Is there an alternative method to generate multi-image
TIFFs from within ROOT ?
regards
Dirk
// example of a macro that might work in the future
{
TImage *img = 0;
gSystem->Unlink(“imgstack.tif”); // delete existing file
for (int i = 1; i <= 3; i++) {
delete img; // delete previous image
// Read image data. Image can be in any format, e.g. png, gif, etc.
img = TImage::Open(Form("image%d.jpg", i));
if (i < 10) {
// add image to the multi-image tif
img->WriteImage("imgstack.tif+");
}
}
}