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

Method IsValidSlice

Modules/Core/src/DataManagement/mitkImage.cpp:1015–1022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013}
1014
1015bool mitk::Image::IsValidSlice(int s, int t, int n) const
1016{
1017 if (m_Initialized)
1018 return ((s >= 0) && (s < (int)m_Dimensions[2]) && (t >= 0) && (t < (int)m_Dimensions[3]) && (n >= 0) &&
1019 (n < (int)GetNumberOfChannels()));
1020 else
1021 return false;
1022}
1023
1024bool mitk::Image::IsValidVolume(int t, int n) const
1025{

Callers 2

mitkImageTestFunction · 0.45
SetSliceItemMethod · 0.45

Calls 1

GetNumberOfChannelsFunction · 0.50

Tested by 1

mitkImageTestFunction · 0.36