static void CreateImage(FloatImageType::Pointer image);
int main(int, char *[])
{
FloatImageType::Pointer image = FloatImageType::New();
CreateImage(image);
SinImageFilterType::Pointer sinImageFilter = SinImageFilterType::New ();
sinImageFilter->SetInput(image);
sinImageFilter->Update();
return EXIT_SUCCESS;
}
void CreateImage(FloatImageType::Pointer image)
{
image->SetRegions(region);
image->Allocate();
image->FillBuffer(0);
}