BBTK_BLACK_BOX_IMPLEMENTATION(NewDicomImaPosPat,bbtk::AtomicBlackBox);
void NewDicomImaPosPat::Process()
{
- printf("NewDicomImaPosPat::Process Start\n");
if (!((bbGetInputIPP().size()!=3) || (bbGetInputIOP().size()!=6) || (bbGetInputPixelSpacing().size()!=3) ))
{
matrixRotation matrixrotation;
matrixrotation.SetOrigin( bbGetInputIPP()[0] , bbGetInputIPP()[1] , bbGetInputIPP()[2] );
matrixrotation.SetVector1( bbGetInputIOP()[0] , bbGetInputIOP()[1] , bbGetInputIOP()[2] );
matrixrotation.SetVector2( bbGetInputIOP()[3] , bbGetInputIOP()[4] , bbGetInputIOP()[5] );
- printf("EED NewDicomImaPosPat::Process spc %f %f %f \n", bbGetInputPixelSpacing()[0] , bbGetInputPixelSpacing()[1], bbGetInputPixelSpacing()[2] );
matrixrotation.SetSpacing( bbGetInputPixelSpacing()[0] , bbGetInputPixelSpacing()[1], bbGetInputPixelSpacing()[2]);
vtkTransform *transform = vtkTransform::New();
matrixrotation.GetTransformation(transform);
vecOutIPP.push_back( newIPP[2] );
bbSetOutputOut( vecOutIPP );
} else {
- printf("EED NewDicomImaPosPat::Process empty vector with input Point\n");
+ //
}
} else {
printf("EED Warnning! NewDicomImaPosPat::Process Size inputs are not correct. IPP(3)=%lu IOP(6)=%lu Spacing(3)=%lu Point(3)=%lu\n", bbGetInputIPP().size() , bbGetInputIOP().size() , bbGetInputPixelSpacing().size() , bbGetInputPoint().size() );
}
- printf("NewDicomImaPosPat::Process End\n");
}
/*