hey mitk users,

I am trying to crop a region of interest from a 3D image with which I can
crop the image region in a bounding box whose parameters are given by the
user.
I input these parameters (bounds of the bounding box). The bounds are
specifically inside the specified dimensions of the 3D image in the x,y and
z axes.
everything seems to compile properly. but when I try to run the program I
get the error pasted below along with parts of the code:
Can anybody tell me what the errors mean ??
Thanks in advance

  mitk::BoundingObjectCutter::Pointer roiCropper =
mitk::BoundingObjectCutter::New();
  mitk::Geometry3D::Pointer geometryForBounder = mitk::Geometry3D::New();
  mitk::BoundingObject::Pointer boundingObject;
  boundingObject = mitk::Cuboid::New();
  mitk::Geometry3D::BoundsArrayType boundsInCropper;
  unsigned long int valueOfParameter;

  mitk::StandaloneDataStorage::Pointer ds =
mitk::StandaloneDataStorage::New();

        geometryForBounder->SetBounds(boundsInCropper);
        boundingObject->SetGeometry(geometryForBounder);
        boundingObject->GetTimeGeometry()->Update();
        roiCropper->SetBoundingObject(boundingObject);
        roiCropper->SetInput(inputImage);
        outputImage = dynamic_cast<mitk::Image*>(roiCropper->GetOutput());
        mitk::DataNode::Pointer resultNode = mitk::DataNode::New();
        resultNode->SetData(outputImage);
        roiCropper->GenerateData();
        ds->Add(node);
//


ERROR: In /../../../Common/ExecutionModel/vtkAlgorithm.cxx, line 1328
vtkPainterPolyDataMapper (0x23edb00): Attempt to get connection index 0 for
input port 0, which has 0 connections.

ERROR: In  /../../..//Rendering/Core/vtkPolyDataMapper.cxx, line 50
vtkPainterPolyDataMapper (0x23edb00): Mapper has no input.

ERROR: In  /../../../../Common/ExecutionModel/vtkAlgorithm.cxx, line 1328
vtkPainterPolyDataMapper (0x23edb00): Attempt to get connection index 0 for
input port 0, which has 0 connections.

ERROR: In  /../../..../../Rendering/Core/vtkPolyDataMapper.cxx, line 50
vtkPainterPolyDataMapper (0x23edb00): Mapper has no input.

ERROR: In /../../..../../Common/ExecutionModel/vtkAlgorithm.cxx, line 1328
vtkPainterPolyDataMapper (0x23edb00): Attempt to get connection index 0 for
input port 0, which has 0 connections.

ERROR: In  /../../..../../Rendering/Core/vtkPolyDataMapper.cxx, line 50
vtkPainterPolyDataMapper (0x23edb00): Mapper has no input.

ERROR: In /../../..../../Common/ExecutionModel/vtkAlgorithm.cxx, line 1328
vtkPainterPolyDataMapper (0x23edb00): Attempt to get connection index 0 for
input port 0, which has 0 connections.

ERROR: In /../../..../../Rendering/Core/vtkPolyDataMapper.cxx, line 50
vtkPainterPolyDataMapper (0x23edb00): Mapper has no input.

ERROR: In /../../..../../Common/ExecutionModel/vtkAlgorithm.cxx, line 1328
vtkPainterPolyDataMapper (0x23edb00): Attempt to get connection index 0 for
input port 0, which has 0 connections.

ERROR: In /../../..../../Rendering/Core/vtkPolyDataMapper.cxx, line 50
vtkPainterPolyDataMapper (0x23edb00): Mapper has no input.

ERROR: In  /../../..../../Common/ExecutionModel/vtkAlgorithm.cxx, line 1328
vtkPainterPolyDataMapper (0x23edb00): Attempt to get connection index 0 for
input port 0, which has 0 connections.

ERROR: In /../../..../../Rendering/Core/vtkPolyDataMapper.cxx, line 50
vtkPainterPolyDataMapper (0x23edb00): Mapper has no input.


-- 
Jatin Nath,
School of BioMedical Engineering,
Indian Institute of Technology (Banaras Hindu University), Varanasi
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to