MCPcopy Create free account
hub / github.com/Kitware/VTK / CanRead

Method CanRead

IO/Image/vtkTIFFReader.cxx:335–345  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

333
334//------------------------------------------------------------------------------
335bool vtkTIFFReader::vtkTIFFReaderInternal::CanRead()
336{
337 return (this->Image && (this->Width > 0) && (this->Height > 0) && (this->SamplesPerPixel > 0) &&
338 (this->Compression == COMPRESSION_NONE || this->Compression == COMPRESSION_PACKBITS ||
339 this->Compression == COMPRESSION_LZW || this->Compression == COMPRESSION_ADOBE_DEFLATE) &&
340 (this->HasValidPhotometricInterpretation) &&
341 (this->Photometrics == PHOTOMETRIC_RGB || this->Photometrics == PHOTOMETRIC_MINISWHITE ||
342 this->Photometrics == PHOTOMETRIC_MINISBLACK || this->Photometrics == PHOTOMETRIC_PALETTE) &&
343 (this->PlanarConfig == PLANARCONFIG_CONTIG) && (!this->TileDepth) &&
344 (this->BitsPerSample == 8 || this->BitsPerSample == 16 || this->BitsPerSample == 32));
345}
346
347//------------------------------------------------------------------------------
348vtkTIFFReader::vtkTIFFReader()

Callers 2

ExecuteInformationMethod · 0.45
ReadImageInternalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected