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

Function InitializeData

IO/Image/Testing/Cxx/TestDataObjectIO.cxx:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <iostream>
9
10void InitializeData(vtkImageData* Data)
11{
12 vtkImageNoiseSource* const source = vtkImageNoiseSource::New();
13 source->SetWholeExtent(0, 15, 0, 15, 0, 0);
14 source->Update();
15
16 Data->ShallowCopy(source->GetOutput());
17 source->Delete();
18}
19
20bool CompareData(vtkImageData* Output, vtkImageData* Input)
21{

Callers 1

Calls 6

DeleteMethod · 0.65
NewFunction · 0.50
SetWholeExtentMethod · 0.45
UpdateMethod · 0.45
ShallowCopyMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected