aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_threshold.cc
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2009-08-15 16:01:08 +0000
committerN.N. <sevyves@users.sourceforge.net>2009-08-15 16:01:08 +0000
commit3eca5353025abcded8bf8e009945260dcbad677e (patch)
treec40afd0ef752047ee8ada4d88b1624e8c64629fc /pix_opencv_threshold.cc
parent65fede5d18e7e4004c36991dc21dbf6273f9f0af (diff)
fixed threshold
svn path=/trunk/externals/pix_opencv/; revision=11926
Diffstat (limited to 'pix_opencv_threshold.cc')
-rw-r--r--pix_opencv_threshold.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/pix_opencv_threshold.cc b/pix_opencv_threshold.cc
index 2a353c4..bf1af10 100644
--- a/pix_opencv_threshold.cc
+++ b/pix_opencv_threshold.cc
@@ -46,10 +46,10 @@ pix_opencv_threshold :: pix_opencv_threshold()
/////////////////////////////////////////////////////////
pix_opencv_threshold :: ~pix_opencv_threshold()
{
- //Destroy cv_images to clean memory
- cvReleaseImage(&orig);
- cvReleaseImage(&gray);
- cvReleaseImage(&rgb);
+ //Destroy cv_images to clean memory
+ cvReleaseImage(&orig);
+ cvReleaseImage(&gray);
+ cvReleaseImage(&rgb);
}
/////////////////////////////////////////////////////////
@@ -214,11 +214,11 @@ void pix_opencv_threshold :: processGrayImage(imageStruct &image)
/////////////////////////////////////////////////////////
void pix_opencv_threshold :: floatMaxMess (float maxvalue)
{
- if ( (int)maxvalue>0 ) this->max_value = (int)maxvalue;
+ if ( (int)maxvalue>0 ) this->max_value = maxvalue;
}
void pix_opencv_threshold :: floatThreshMess (float edge_thresh)
{
- this->edge_thresh = (int)edge_thresh;
+ this->threshold_value = edge_thresh;
}
void pix_opencv_threshold :: floatModeMess (float mode)
{