SBU-BMI / SlicerPathology

3D Slicer extension for Pathology segmentation tools
http://bmi.stonybrookmedicine.edu
Other
5 stars 8 forks source link

TCGAUtilities.cxx: Fix -Wmaybe-uninitialized #26

Closed jcfr closed 8 years ago

jcfr commented 8 years ago
/home/jcfr/Projects/CustomExtensionsIndex-build/SlicerPathology/QuickTCGA/Logic/TCGAUtilities.cxx: In function ‘void TCGA::FindBoundingBoxFromMask(const cv::Mat&, cv::Rect&)’:
/home/jcfr/Projects/CustomExtensionsIndex-build/SlicerPathology/QuickTCGA/Logic/TCGAUtilities.cxx:105:44: warning: ‘indMax’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     rect = cv::boundingRect(contours[indMax]);
                                            ^