//!---------------------------------------------------------------------------- //! //! \brief Patient::ThreadImageProcessing::run //! void Patient::ThreadImageProcessing::run(){ //! check if patient's mraImage exist in the personnel mra path.... QFileInfo checkMHDFile(patient->myPath + "/mra_tridimensionel__image/" + patient->name + ".mhd"); //! check if file exists and if yes: Is it really a file and no directory? if((checkMHDFile.exists() && checkMHDFile.isFile()) ){ patient->MraImageReadComplete = patient->mhdFileReader->doParseMHDFile(checkMHDFile.filePath(),patient->originImage); } }
//!---------------------------------------------------------------------------- //! //! \brief Patient::ThreadImageProcessing::run //! void Patient::ThreadImageProcessing::run(){ //! check if patient's mraImage exist in the personnel mra path.... QFileInfo checkMHDFile(patient->myPath + "/mra_tridimensionel__image/" + patient->name + ".mhd"); QString mraImagefilePath; //! check if file exists and if yes: Is it really a file and no directory? if((checkMHDFile.exists() && checkMHDFile.isFile()) ){ mraImagefilePath = patient->myPath + "/mra_tridimensionel__image/" + patient->name + ".mhd"; patient->loadMRAImageFile(mraImagefilePath); patient->statisticsList = patient->imageProcessingFactory->getHistogramStatisticsFrom(patient->MriImageForDisplay); patient->maximumGrayScaleValue = patient->statisticsList[0].toInt(0, 10); patient->minimumGrayScaleValue = patient->statisticsList[1].toInt(0, 10); patient->frequencies = patient->imageProcessingFactory->getHistogramFrom(patient->MriImageForDisplay); patient->MraImageReadComplete = true; } }