mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-08 13:47:27 +05:00
Code clean-up, remove trailing white spaces
This commit is contained in:
parent
8bdb4879a4
commit
ae18a6997b
@ -179,6 +179,7 @@ bool ShapeRec_FeatureDetector::ComputeContours( bool useROI, ShapeRec_Parameters
|
|||||||
float hranges[] = { 0, 180 };
|
float hranges[] = { 0, 180 };
|
||||||
float sranges[] = { 0, 256 };
|
float sranges[] = { 0, 256 };
|
||||||
float* ranges[] = { hranges, sranges };
|
float* ranges[] = { hranges, sranges };
|
||||||
|
|
||||||
sample_hist = cvCreateHist( 2, aColorFilterParameters->histSize, aColorFilterParameters->histType, ranges );
|
sample_hist = cvCreateHist( 2, aColorFilterParameters->histSize, aColorFilterParameters->histType, ranges );
|
||||||
|
|
||||||
//calculate hue /saturation histogram
|
//calculate hue /saturation histogram
|
||||||
@ -295,6 +296,7 @@ void ShapeRec_FeatureDetector::SetROI( const QRect& theRect )
|
|||||||
*/
|
*/
|
||||||
std::string ShapeRec_FeatureDetector::CroppImage()
|
std::string ShapeRec_FeatureDetector::CroppImage()
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
IplImage* src = cvLoadImage(imagePath.c_str(),CV_LOAD_IMAGE_COLOR);
|
IplImage* src = cvLoadImage(imagePath.c_str(),CV_LOAD_IMAGE_COLOR);
|
||||||
|
|
||||||
cvSetImageROI(src, rect);
|
cvSetImageROI(src, rect);
|
||||||
@ -310,6 +312,7 @@ std::string ShapeRec_FeatureDetector::CroppImage()
|
|||||||
cvReleaseImage(&cropped_image);
|
cvReleaseImage(&cropped_image);
|
||||||
|
|
||||||
return "/tmp/cropped_image.bmp";
|
return "/tmp/cropped_image.bmp";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user