I am trying to extract a whole scale image from a SVS file in C++.
I saw an explanation from the OpenSlide homepage. It says the SVS format is "single-file pyramidal tiled TIFF".
So I tried to extract a whole-scale image like I did for TIFF image: I read all IFDs from the SVS file, but there is no 273 tag which contains an address pointing to a whole scale image.
That's why I am little confused now, the SVS format doesn't have a whole scale image inside the file?
I found an undefined private tag from a SVS file which number is 34675. Is this tag is for a whole scale image? Or is there a proper way to extract it?
for (int tile = 0; tile < TIFFNumberOfTiles(tiff_in); tile++){ TIFFReadRawTile(tiff_in, tile, buf, (tsize_t)-1); TIFFWriteRawTile(tiff_out, tile, buf, (tsize_t)sizeof(buf)); }
– YJJ Nov 21 '18 at 10:40But after this, I got only 43KB output raw file from 152MB svs file. there must be some mistakes. should I write the tiles after completing reading all of them first? Thanks