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

Method AllocateOutputData

Imaging/Core/vtkImageSSIM.cxx:468–474  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

466
467//------------------------------------------------------------------------------
468void vtkImageSSIM::AllocateOutputData(vtkImageData* output, vtkInformation* outInfo, int* uExtent)
469{
470 // set the extent to be the update extent
471 output->SetExtent(uExtent);
472 int numComponents = vtkImageData::GetNumberOfScalarComponents(outInfo);
473 output->AllocateScalars(VTK_DOUBLE, numComponents);
474}
475
476//------------------------------------------------------------------------------
477void vtkImageSSIM::ThreadedRequestData(vtkInformation* vtkNotUsed(request), vtkInformationVector**,

Calls 2

SetExtentMethod · 0.45
AllocateScalarsMethod · 0.45

Tested by

no test coverage detected