#include <stdlib.h>
#include <iostream>
int main( int , char *[] )
{
for ( unsigned int i = 0; i < 100*100*100; ++i )
{
in[i] = i%255;
}
importer.
SetSpacing( std::vector<double>( 3, .33 ) );
importer.
SetOrigin( std::vector<double>( 3, .123 ) );
importer.
SetSize( std::vector<unsigned int>( 3, 100 ) );
for ( unsigned int i = 0; i < 10; ++i)
{
std::cout << int(out[i]) << " ";
}
std::cout << std::endl;
return EXIT_SUCCESS;
}
Image GrayscaleErode(const Image &image1, std::vector< unsigned int > kernelRadius=std::vector< uint32_t >(3, 1), KernelEnum kernelType=itk::simple::sitkBall)
Grayscale erosion of an image.