MCPcopy Create free account
hub / github.com/MITK/MITK / ComputeItemSize

Method ComputeItemSize

Modules/Core/src/DataManagement/mitkImageDataItem.cpp:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166
167void mitk::ImageDataItem::ComputeItemSize(const unsigned int *dimensions, unsigned int dimension)
168{
169 m_Size = m_PixelType->GetSize();
170 for (unsigned int i = 0; i < dimension; i++)
171 {
172 m_Size *= *(dimensions + i);
173 }
174}
175
176void mitk::ImageDataItem::ConstructVtkImageData(ImageConstPointer iP) const
177{

Callers 1

ImageDataItemMethod · 0.95

Calls 1

GetSizeMethod · 0.45

Tested by

no test coverage detected