fprintf(pFileData,"NumberOfContours %d\n", sizeLstNameThings );
//------------------------------------------------------------------------------------------------------------
+
+// EED 2017-05-30
+ double spc[3];
+ spc[0]=1;
+ spc[1]=1;
+ spc[2]=1;
+
for (i=0 ; i<sizeLstNameThings ; i++)
{
//CMRU 03-09-09-----------------------------------------------------------------------------------------------
manualBaseModel * manualModel = kernelManager->getOutlineByKeyName(lstNameThings[i]);
- double sizeInPixel = manualModel ->GetPathSize();
+
+// EED 2017-05-30
+// double sizeInPixel = manualModel ->GetPathSize( );
+ double sizeInPixel = manualModel ->GetPathSize( spc );
+
double realContourSize = sizeInPixel*_onePixelSize;
manualModel ->SetRealSize(realContourSize);
//------------------------------------------------------------------------------------------------------------
std::string cloneName = currentSelection [0];
manualBaseModel * manualModel = kernelManager->getOutlineByKeyName(cloneName);//_modelManager->getOutlineByKeyName( cloneName )->getModel();
- contourSize = manualModel-> GetPathSize();
+
+// EED 2017-05-30
+// contourSize = manualModel->GetPathSize();
+ double spc[3];
+ spc[0]=1;
+ spc[1]=1;
+ spc[2]=1;
+ contourSize = manualModel->GetPathSize( spc );
}
return contourSize;
}
+
manualBaseModel * wxContourMainFrame::getContour ()
{
std::vector<std::string> currentSelection = _theViewPanel->getSelectedObjects();
}
void wxContourMainFrame::onInsertCalculation(manualBaseModel* manualModel)
{
- double sizeInPixel = manualModel ->GetPathSize();
+// EED 2017-05-30
+// double sizeInPixel = manualModel ->GetPathSize( );
+ double spc[3];
+ spc[0]=1; // ????
+ spc[1]=1; // ????
+ spc[2]=1; // ????
+ double sizeInPixel = manualModel ->GetPathSize( spc );
+
double onePixelRealSize = interfMainPanel::getInstance()->GetPixelValue();;
- double realContourSize = sizeInPixel*onePixelRealSize;
+ double realContourSize = sizeInPixel*onePixelRealSize;
manualModel ->SetRealSize(realContourSize);
}
wxAuiManager m_mgr;
wxAuiNotebook *notebook;
- long m_notebook_style;
- long m_notebook_theme;
- int _numberOfVariablesStatistics;
+ long m_notebook_style;
+ long m_notebook_theme;
+ int _numberOfVariablesStatistics;
// Contour Image Mask
ThresholdImageView *_viewMaskImage;
ThresholdImageViewPanel *_viewMaskImagePanel;
// Threshold Image
- ThresholdImageView *_viewThresholdImage;
+ ThresholdImageView *_viewThresholdImage;
ThresholdImageViewPanel *_viewThresholdImagePanel;
// Color Layer Image
bool _actorPresent;
// temporary variables readding .roi file
- int _tmpReadFileImageDim[3];
- double _tmpReadFileImageSpac[3];
- int _tmpReadFileTypeOfTransformation;
+ int _tmpReadFileImageDim[3];
+ double _tmpReadFileImageSpac[3];
+ int _tmpReadFileTypeOfTransformation;
void readDimSpc(FILE *pFile, bool interactiveOption);