Skip to content

Commit

Permalink
Set spacing to a fixed value corresponding to 40X for VSI files.
Browse files Browse the repository at this point in the history
This caused error in PatchGenerator and others which relies on the spacing information.
  • Loading branch information
smistad committed Jan 22, 2024
1 parent a094b08 commit d57249d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/FAST/Data/ImagePyramid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ ImagePyramid::ImagePyramid(std::ifstream* stream, std::vector<vsi_tile_header> t
m_initialized = true;
m_pyramidFullyInitialized = true;
m_compressionFormat = compressionFormat;
reportWarning() << "Loaded a CellSense VSI file. FAST is unable to get spacing information and therefore assumes it is at 40X magnification. If this is not correct you should set the pixel spacing on the image object manually with ImagePyramid::setSpacing()." << reportEnd();
setSpacing(Vector3f(0.00025, 0.00025, 1.0));
}

ImagePyramid::ImagePyramid() {
Expand Down

0 comments on commit d57249d

Please sign in to comment.