21 #include <itkSTAPLEImageFilter.h>
23 int main(
int argc,
char* argv[])
27 typedef itk::STAPLEImageFilter<MaskImageType, ImageType> FilterType;
30 filter->SetForegroundValue(2);
31 for (
int i = 2; i < argc; ++i)
37 filter->SetInput(i-2, itkImg);
40 auto out = filter->GetOutput();
itk::SmartPointer< Self > Pointer
itk::Image< unsigned char, 3 > ImageType
static bool SaveImage(mitk::Image::Pointer image, const std::string &path)
SaveImage Convenience method to save an arbitrary mitkImage.
int main(int argc, char *argv[])
itk::Image< unsigned char, 3 > MaskImageType
void CastToMitkImage(const itk::SmartPointer< ItkOutputImageType > &itkimage, itk::SmartPointer< mitk::Image > &mitkoutputimage)
Cast an itk::Image (with a specific type) to an mitk::Image.
void MITKCORE_EXPORT CastToItkImage(const mitk::Image *mitkImage, itk::SmartPointer< ItkOutputImageType > &itkOutputImage)
Cast an mitk::Image to an itk::Image with a specific type.
static mitk::Image::Pointer LoadImage(const std::string &path)
LoadImage Convenience method to load an arbitrary mitkImage.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.