I would like to create ome.tif files with pyramid resolution levels and use the following command (in version 6.5.1):
bfconvert -compression JPEG -tilex 256 -tiley 256 -pyramid-resolutions 6 -pyramid-scale 2 ORIGINAL.tif CONVERTED.ome.tif
For an image of size e.g. 2000x2000 pixel this create planes with
1: 2000x2000 pixel
2: 1000x1000 pixel
3: 500x500 pixel
4: 250x250 pixel
5: 125x125 pixel
6: 63x63 pixel
Is there a way to avoid creating planes with size smaller than the specified tile size (without manually pre-calculate the number of planes)?
If yes, how does it work?
If no, …
It would be nice to have an option to force bfconvert (aka ImageConverter) not to create planes smaller the ‘tilex’ / ‘tiley’.
The number of meaningful resolution levels is already defined by the image size, the specified pyramid-scale and the specified tile size in this case.
Idea:
Currently the option ‘pyramid-resolutions’ seems to switch ON the sub-plane creation.
In the same way ‘pyramid-scale’ could be used as switch and in case the option ‘pyramid-resolutions’ is not specified bfconvert could calculate it automatically, like :
bfconvert -compression JPEG -tilex 256 -tiley 256 -pyramid-scale 2 ORIGINAL.tif CONVERTED.ome.tif