| 165 | } |
| 166 | |
| 167 | std::string |
| 168 | ImageReaderBase ::GetImageIOFromFileName(const PathType & fileName) |
| 169 | { |
| 170 | itk::ImageIOBase::Pointer iobase; |
| 171 | try |
| 172 | { |
| 173 | iobase = itk::ImageIOFactory::CreateImageIO(fileName.c_str(), itk::IOFileModeEnum::ReadMode); |
| 174 | } |
| 175 | catch (...) |
| 176 | { |
| 177 | // ignore exceptions |
| 178 | } |
| 179 | |
| 180 | |
| 181 | if (iobase.IsNull()) |
| 182 | { |
| 183 | return std::string(); |
| 184 | } |
| 185 | |
| 186 | return iobase->GetNameOfClass(); |
| 187 | } |
| 188 | |
| 189 | void |
| 190 | ImageReaderBase ::GetPixelIDFromImageIO(const PathType & fileName, |
nothing calls this directly
no test coverage detected