------------------------------------------------------------------------------
| 62 | |
| 63 | //------------------------------------------------------------------------------ |
| 64 | void vtkImageXYZToLAB::ThreadedExecute( |
| 65 | vtkImageData* inData, vtkImageData* outData, int outExt[6], int id) |
| 66 | { |
| 67 | vtkDebugMacro(<< "Execute: inData = " << inData << ", outData = " << outData); |
| 68 | |
| 69 | // need three components for input and output |
| 70 | if (inData->GetNumberOfScalarComponents() < 3) |
| 71 | { |
| 72 | vtkErrorMacro("Input has too few components"); |
| 73 | return; |
| 74 | } |
| 75 | if (outData->GetNumberOfScalarComponents() < 3) |
| 76 | { |
| 77 | vtkErrorMacro("Output has too few components"); |
| 78 | return; |
| 79 | } |
| 80 | |
| 81 | switch (inData->GetScalarType()) |
| 82 | { |
| 83 | vtkTemplateMacro( |
| 84 | vtkImageXYZToLABExecute(this, inData, outData, outExt, id, static_cast<VTK_TT*>(nullptr))); |
| 85 | default: |
| 86 | vtkErrorMacro(<< "Execute: Unknown ScalarType"); |
| 87 | return; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | void vtkImageXYZToLAB::PrintSelf(ostream& os, vtkIndent indent) |
| 92 | { |
nothing calls this directly
no test coverage detected