mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
handdetect: remove another unused variable
Memory is reserved for this variable and then released without making any use of it. https://bugzilla.gnome.org/show_bug.cgi?id=752528
This commit is contained in:
parent
e00461a789
commit
31b1938a5f
2 changed files with 0 additions and 8 deletions
|
@ -161,8 +161,6 @@ gst_handdetect_finalize (GObject * obj)
|
||||||
|
|
||||||
if (filter->cvGray)
|
if (filter->cvGray)
|
||||||
cvReleaseImage (&filter->cvGray);
|
cvReleaseImage (&filter->cvGray);
|
||||||
if (filter->cvStorage)
|
|
||||||
cvReleaseMemStorage (&filter->cvStorage);
|
|
||||||
g_free (filter->profile_fist);
|
g_free (filter->profile_fist);
|
||||||
g_free (filter->profile_palm);
|
g_free (filter->profile_palm);
|
||||||
g_free (filter->best_r);
|
g_free (filter->best_r);
|
||||||
|
@ -387,10 +385,6 @@ gst_handdetect_set_caps (GstOpencvVideoFilter * transform,
|
||||||
filter->cvGray =
|
filter->cvGray =
|
||||||
cvCreateImage (cvSize (in_width, in_height), IPL_DEPTH_8U, 1);
|
cvCreateImage (cvSize (in_width, in_height), IPL_DEPTH_8U, 1);
|
||||||
|
|
||||||
if (!filter->cvStorage)
|
|
||||||
filter->cvStorage = cvCreateMemStorage (0);
|
|
||||||
else
|
|
||||||
cvClearMemStorage (filter->cvStorage);
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -412,7 +406,6 @@ gst_handdetect_transform_ip (GstOpencvVideoFilter * transform,
|
||||||
if (filter->cvCascade_fist && filter->cvCascade_palm) {
|
if (filter->cvCascade_fist && filter->cvCascade_palm) {
|
||||||
/* cvt to gray colour space for hand detect */
|
/* cvt to gray colour space for hand detect */
|
||||||
cvCvtColor (img, filter->cvGray, CV_RGB2GRAY);
|
cvCvtColor (img, filter->cvGray, CV_RGB2GRAY);
|
||||||
cvClearMemStorage (filter->cvStorage);
|
|
||||||
|
|
||||||
/* detect FIST gesture fist */
|
/* detect FIST gesture fist */
|
||||||
Mat roi (filter->cvGray, Rect (filter->cvGray->origin,
|
Mat roi (filter->cvGray, Rect (filter->cvGray->origin,
|
||||||
|
|
|
@ -96,7 +96,6 @@ struct _GstHanddetect
|
||||||
IplImage *cvGray;
|
IplImage *cvGray;
|
||||||
cv::CascadeClassifier *cvCascade_fist;
|
cv::CascadeClassifier *cvCascade_fist;
|
||||||
cv::CascadeClassifier *cvCascade_palm;
|
cv::CascadeClassifier *cvCascade_palm;
|
||||||
CvMemStorage *cvStorage;
|
|
||||||
cv::Rect *prev_r;
|
cv::Rect *prev_r;
|
||||||
cv::Rect *best_r;
|
cv::Rect *best_r;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue