cleaning based on valgrind input

a number of cleanups, the most critical probably in ui_RegistrationView.cpp:403 setupParentUIMenu, where a variable was accessed before initialisation
This commit is contained in:
Proton local user
2023-07-01 01:21:28 +02:00
parent 33a9cc7ec2
commit 2f31cf4b29
4 changed files with 24 additions and 19 deletions

View File

@ -27,31 +27,31 @@ typedef enum eImageOrientationType{
typedef enum eHandlingRotImpTransform {
ALWAYS_USE = 0,
NEVER_USE,
STATION_DEPENDENT
NEVER_USE =1,
STATION_DEPENDENT=2
} tHandlingRotImpTransform;
typedef enum eDegreeOfFreedomType {
UNKNOWN = 0,
THREE_DOF,
SIX_DOF,
X_ONLY,
Y_ONLY,
Z_ONLY,
ROTATION_ONLY,
OTHER
THREE_DOF =1,
SIX_DOF =2 ,
X_ONLY =3 ,
Y_ONLY =4,
Z_ONLY =5 ,
ROTATION_ONLY =6,
OTHER =7
} tDegreeOfFreedomEnum;
typedef enum eOptimizerType{
POWELL,
AMOEBA,
EXHAUSTIVE
POWELL = 0,
AMOEBA = 1,
EXHAUSTIVE =2
} tOptimizerTypeEnum;
typedef enum eMetricType{
NCC,
MI
NCC = 0,
MI = 1
} tMetricTypeEnum;
@ -73,7 +73,8 @@ inline int GetNumberOfDOF(eDegreeOfFreedomType dof)
default:
return 0;
}
}
return 0;
};
class DegreeOfFreedom : public itk::Object {
@ -730,6 +731,6 @@ private:
void operator=(const Self&);
};
}
};
#endif

View File

@ -114,7 +114,7 @@ itkImageProcessor::itkImageProcessor()
m_DRTGeometryMetaInfo->SetProjectionAngle2IEC(90.);
m_DRTGeometryMetaInfo->SetIntensityThreshold(-300.);
ImageType3D::PointType
Point3D;
Point3D(3);
Point3D[0]=0.;
Point3D[1]=0.;
Point3D[2]=175.;
@ -128,7 +128,7 @@ itkImageProcessor::itkImageProcessor()
m_DRTGeometryMetaInfo->SetDRT1Size(ImageSize);
m_DRTGeometryMetaInfo->SetDRT2Size(ImageSize);
ImageType3D::SpacingType
ImageRes;
ImageRes(3);
ImageRes[0] = 1.;
ImageRes[1] = 1.;
ImageRes[2] = 1.;
@ -1174,6 +1174,7 @@ double itkImageProcessor::GetLocalizerDisplayWindowLevel(int iImg)
m_TImageMeta->GetWLLevel();
}
return 0.;
}
double itkImageProcessor::GetLocalizerDisplayWindowWidth(int iImg)
@ -1204,6 +1205,7 @@ double itkImageProcessor::GetLocalizerDisplayWindowWidth(int iImg)
m_TImageMeta->GetWLWindow();
}
return 0.;
}

View File

@ -49,7 +49,7 @@ int query2DimageReconstructionDiameter(const char*);
const char* queryStationName(const char*);
}
};
#endif

View File

@ -44,6 +44,8 @@ public slots:
sendRegistrationProgress(1,dI,dX,dY,dZ);
break;
default:
break;
}
}