hello mitk users,
I am a bit confused regarding the mitk rotation operation's usage and the
parameters used inside.
I am trying to rotate a bounding object and crop an ROI in a 3D mitk
image.I have pointed some points of concern in mitk rotation operation that
I am facing.
1) AngleOfRotation, PointOfRotation*, *VectorOfRotation
I need a little more elaboration on these parameters. I have found that
the PointOfRotation remains fixed (which was quite obvious).
VectorOfRotation??From what I have tried in my program I have not
completely been able to figure it out. Is it supposed to be the axis of
rotation??
Finally, AngleofRotation ??
2) after performing the execute operation command and getting the output
image I find that I get "weird" dimensions for the bounding object which do
not correlate with the bounds of the bounding object.
I have pasted my code here so you guys can see what i could possibly have
done wrong:
mitk::RotationOperation *op = new mitk::RotationOperation(mitk::OpROTATE,
centerPoint, rotationAxis, 0);
mitk::Vector3D imageSpacing = inputImage->GetGeometry()->GetSpacing();
geometryForBounder->SetOrigin(origin);
geometryForBounder->SetSpacing(imageSpacing);
geometryForBounder->SetBounds(boundsInCropper);
geometryForBounder->ExecuteOperation(op);
boundingObject->FitGeometry(geometryForBounder);
boundingObject->GetTimeGeometry()->Update();
roiCropper->SetBoundingObject(boundingObject);
roiCropper->SetInput(inputImage);
roiCropper->Update();
outputImage = dynamic_cast<mitk::Image*>(roiCropper->GetOutput());
mitk::DataNode::Pointer resultNode = mitk::DataNode::New();
resultNode->SetData(outputImage);
ds->Add(resultNode);
for AOR = 0 and 30, Output dimensions are very different
*x,y and z bounds are from -100 to 100*
Dimesions of the MITK Image are
input dim 512
input dim 512
input dim 427
*for AOR =0 **output dim: 200 ; for AOR =30 output dim:
306*
*for AOR =0 ** output dim: 200 ; for AOR =30 output dim:
273*
*for AOR =0 **output dim: 200 ; for AOR =30 output dim:
259*
--
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