15 #include "mitkAutoCropTool.xpm" 34 return mitkAutoCropTool_xpm;
44 return "Cropping of these nodes failed:";
62 cropFilter->SetInput(image);
63 cropFilter->SetBackgroundValue(0);
68 image = cropFilter->GetOutput();
69 if (image.IsNotNull())
Shrink the image borders to a minimum considering a background color.
virtual void SetData(mitk::BaseData *baseData)
Set the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
MITK_TOOL_MACRO(MITKSEGMENTATION_EXPORT, LiveWireTool2D, "LiveWire tool")
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
Image class for storing images.
mitk::Image::Pointer image
Class for nodes of the DataTree.