Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image extension are not "detected" from VTK #504

Open
skinkie opened this issue Aug 14, 2021 · 0 comments
Open

Image extension are not "detected" from VTK #504

skinkie opened this issue Aug 14, 2021 · 0 comments

Comments

@skinkie
Copy link

skinkie commented Aug 14, 2021

The main window selects its extentions at this point.

https://github.com/Kitware/TeleSculptor/blob/master/gui/MainWindow.cxx#L141

I have modified the source code to show what VTK exports.

  // Get registered readers
  vtkNew<vtkImageReader2Collection> readers;
  vtkImageReader2Factory::GetRegisteredReaders(readers);

  // Extract extensions for each reader
  readers->InitTraversal();
  while (auto const reader = readers->GetNextItem())
  {
      std::cout << reader->GetFileExtensions() << std::endl;
  }

Which results in:

.png
.pnm .pgm .ppm
.tif .tiff
.bmp
.slc
.hdr .pic
.jpeg .jpg
.MR .CT
.mhd .mha

Still:
image

While:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant