MCPcopy Create free account
hub / github.com/SuperElastix/elastix / IsTypeMapping

Function IsTypeMapping

Common/GTesting/itkImageFileCastWriterGTest.cxx:56–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54// Returns true iff there is a mapping from the type specified by the template argument to the function argument.
55template <typename TPixel>
56bool
57IsTypeMapping(const itk::IOComponentEnum componentEnum)
58{
59 return itk::ImageIOBase::MapPixelType<TPixel>::CType == componentEnum;
60}
61
62
63// Expects that the component type specified by the function argument has the same type traits as the first template

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected