------------------------------------------------------------------------------ This Method returns a pointer to a location in the vtkImageData. Coordinates are in pixel units and are relative to the whole image origin.
| 1452 | // Coordinates are in pixel units and are relative to the whole |
| 1453 | // image origin. |
| 1454 | void* vtkImageData::GetArrayPointer(vtkDataArray* array, int coordinate[3]) |
| 1455 | { |
| 1456 | vtkIdType valueIndex = this->GetValueIndex(array, coordinate); |
| 1457 | return valueIndex >= 0 ? array->GetVoidPointer(valueIndex) : nullptr; |
| 1458 | } |
| 1459 | //------------------------------------------------------------------------------ |
| 1460 | void* vtkImageData::GetArrayPointer(vtkDataArray* array, int x, int y, int z) |
| 1461 | { |
no test coverage detected