sakoho81 / miplib

A Python software library with a variety of functions for (optical) microscopy image restoration, reconstruction and analysis.
Other
70 stars 24 forks source link

Some tif images don't include pixel size information in their tags. #3

Closed ZhenhongDu closed 4 years ago

ZhenhongDu commented 4 years ago

Some tif images don't include pixel size information in their tags.I have to assign a value to their ‘spacing’ attribute.But that's not accurate and it doesn't work well.I'd be happy if you had a good solution.Thank you!

sakoho81 commented 4 years ago

Hi there. Yes, that's actually intended behaviour, as I always want the images to have a pixel size. That's because all the image registration functions, spatial transformations, FRC etc. work on physical units. One can of course think of assigning a default value, like ones, if suitable tags are not found, but that may result into problems. I would recommend opening the offending images on Fiji and setting their pixel size proprely.

ZhenhongDu commented 4 years ago

Hi there. Yes, that's actually intended behaviour, as I always want the images to have a pixel size. That's because all the image registration functions, spatial transformations, FRC etc. work on physical units. One can of course think of assigning a default value, like ones, if suitable tags are not found, but that may result into problems. I would recommend opening the offending images on Fiji and setting their pixel size proprely.

Thanks for your reply.