QString iAIOProvider::GetSupportedLoadFormats() { return QString( "All supported types (*.mhd *.mha *.stl *.vgi *.raw *.rec *.vol *.pro *.pars *.dcm *.oif *.am " #ifdef USE_HDF5 "*.hdf5 *.h5 *.he5 *.mat " #endif "*.vti "+ImageFormatExtensions+");;" + MetaImages + "STL files (*.stl);;" "VG Studio Scenes (*.vgi);;" "RAW files (*.raw *.rec *.vol *.pro);;" "PARS files (*.pars);;" "Dicom Series (*.dcm);;" // "NRRD files (*.nrrd *.nhdr);;" // currently not supported as it reads as a itk::VectorImage, which we cannot convert to vtkImageData at the moment "Olympus FluoView (*.oif);;" "AmiraMesh (*.am);;" #ifdef USE_HDF5 "Hierarchical Data Format v5 (*.hdf5 *.h5 *.he5);;" "Matlab data files v7.3 (*.mat);;" "Network Common Data Format v4 (*.nc *.cdf);;" #endif "Serial VTK image data (*.vti);;") + GetSupportedImageFormats(); }
bool FileSystem::IsSupportedImageFile(const string& path) { string fileExt = GetExtensionFromFilePath(path); auto supportedFormats = GetSupportedImageFormats(); for (const auto& format : supportedFormats) { if (fileExt == format || fileExt == ConvertToUppercase(format)) return true; } if (GetExtensionFromFilePath(path) == EXTENSION_TEXTURE) return true; return false; }
QString iAIOProvider::GetSupportedImageStackFormats() { return QString("All supported types (*.mhd *.mha " + ImageFormatExtensions + ");;" ) + MetaImages + GetSupportedImageFormats(); }