MCPcopy Create free account
hub / github.com/Kitware/VTK / ThreadedExecute

Method ThreadedExecute

Imaging/Color/vtkImageXYZToLAB.cxx:64–89  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

62
63//------------------------------------------------------------------------------
64void 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
91void vtkImageXYZToLAB::PrintSelf(ostream& os, vtkIndent indent)
92{

Callers

nothing calls this directly

Calls 3

vtkImageXYZToLABExecuteFunction · 0.85
GetScalarTypeMethod · 0.45

Tested by

no test coverage detected