if (dial->GetReturnCode() == wxID_OK)
{
- int typeOfTransformation = radioOpts->GetSelection();
+ typeOfTransformation = radioOpts->GetSelection();
transform = true;
}
manModelContour = kernelManager->factoryManualContourModel(typeContourModel);
manModelContour->Open(pFile);
-
+
if (transform==true)
{
if (typeOfTransformation==0)
double transX, transY;
transX = (double) imageDim[0]/tempDim[0];
transY = (double) imageDim[1]/tempDim[1];
-
manModelContour->Transform_Ax_Plus_B(transX,0,transY,0);
}
-
else if (typeOfTransformation==1)
{
double transX, transY;
transX = (double) tempSpac[0]/imageSpac[0];
transY = (double) tempSpac[1]/imageSpac[1];
-
manModelContour->Transform_Ax_Plus_B(transX,0,transY,0);
}
}