while (1) {
int len;
gfov = (double*) realloc (gfov, (gfov_len + 1) * sizeof(double));
- rc = sscanf (gfov_str, "%g%n", &gfov[gfov_len], &len);
+ rc = sscanf (gfov_str, "%lf%n", &gfov[gfov_len], &len);
if (rc != 1) {
break;
}
iter2.GoToBegin();
double dmin = 100000.0;
typename ImageType::IndexType indexmin;
+ indexmin.Fill(0);
while (!iter1.IsAtEnd()) {
if (iter1.Get() != BG) {
double d = iter2.Get();
m_Working_Support = m_ListOfSupports[station];
// Get structure or structureZ
- double z;
+ double z=0.;
int found=0;
std::string file;
MaskImagePointer bones_ant;
MaskImagePointer bones_post;
MaskImagePointType middle_AntPost_position;
+ middle_AntPost_position.Fill(NumericTraits<MaskImagePointType::ValueType>::Zero);
if (GetUseBones()) {
this->StartNewStep("[Mediastinum] Ant/Post limits with bones");