#include <iostream>
#include <stdlib.h>
int
main(int argc, char * argv[])
{
if (argc < 3)
{
std::cerr << "Usage: " << argv[0] << " <input-1> <input-2>" << std::endl;
return 1;
}
std::cout <<
"Extracted image size: " << extractedImage.
GetWidth() <<
"x" << extractedImage.
GetHeight() <<
"x"
<< extractedImage.
GetDepth() << std::endl;
std::cout <<
"Cropped image size: " << croppedImage.
GetWidth() <<
"x" << croppedImage.
GetHeight() <<
"x"
<< croppedImage.
GetDepth() << std::endl;
return 0;
}
ComposeImageFilter combine several scalar images into a multicomponent image.
Image Execute(const std::vector< Image > &images)
Decrease the image size by cropping the image by an itk::Size at both the upper and lower bounds of t...
Image Execute(Image &&image1)
void SetUpperBoundaryCropSize(std::vector< unsigned int > UpperBoundaryCropSize)
void SetLowerBoundaryCropSize(std::vector< unsigned int > LowerBoundaryCropSize)
The Image class for SimpleITK.
unsigned int GetDepth() const
unsigned int GetHeight() const
unsigned int GetWidth() const
Join N-D images into an (N+1)-D image.
Image Execute(const std::vector< Image > &images)
Extracts the selected index of the vector that is the input pixel type.
Image Execute(Image &&image1)
void SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type of the scalar component to extract.
void SetIndex(unsigned int Index)
SITKIO_EXPORT Image ReadImage(const PathType &filename, PixelIDValueEnum outputPixelType=sitkUnknown, const std::string &imageIO="")
ReadImage is a procedural interface to the ImageFileReader class which is convenient for most image r...