| 52 | } |
| 53 | |
| 54 | void LabeledImageVolumeCalculator::Calculate() |
| 55 | { |
| 56 | if (m_Image.IsNull()) |
| 57 | { |
| 58 | itkExceptionMacro(<< "Image not set!"); |
| 59 | return; |
| 60 | } |
| 61 | |
| 62 | m_InputTimeSelector->SetInput(m_Image); |
| 63 | |
| 64 | m_InputTimeSelector->SetTimeNr(0); |
| 65 | m_InputTimeSelector->UpdateLargestPossibleRegion(); |
| 66 | |
| 67 | AccessByItk_2(m_InputTimeSelector->GetOutput(), _InternalCalculateVolumes, this, m_Image->GetGeometry(0)); |
| 68 | //} |
| 69 | } |
| 70 | |
| 71 | template <typename TPixel, unsigned int VImageDimension> |
| 72 | void LabeledImageVolumeCalculator::_InternalCalculateVolumes(itk::Image<TPixel, VImageDimension> *image, |
nothing calls this directly
no test coverage detected