Ask Your Question
0

How to use MedianBlur to Mat data CV_32FC1

asked Aug 28 '15

hiwaa gravatar image

updated Aug 28 '15

LBerger gravatar image

Hi there

I want to use MedianBlur to CV_32FC1 data. but, it use only 8bit data format data ? what would be a good way to do it?

so, my soce code is this. but , I run this code , and downed the median blure with no error code.

cv::Mat depthMat = cv::Mat(HEIGHT_BASE_PIC, WIDTH_BASE_PIC, CV_32FC1, SDepthImage->depthImage);
//  cv::imshow("******DepthMat******"+cameraID, depthMat / 4500.0f); 
cv::Mat noiseDeletedMatDepth ;
cv::medianBlur(depthMat, noiseDeletedMatDepth,7);

so, how to use medianBlur for 32bit-float depth data ?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Aug 28 '15

LBerger gravatar image

updated Aug 28 '15

It's possible in opencv 3.0 it is possible and in opencv 2.4.11` but size must be less than 5

Preview: (hide)

Comments

Thank you , so the size means kernel size?

hiwaa gravatar imagehiwaa (Aug 28 '15)edit

yes kernel size so if you want larger size you have to iterate.

LBerger gravatar imageLBerger (Aug 28 '15)edit

Question Tools

1 follower

Stats

Asked: Aug 28 '15

Seen: 375 times

Last updated: Aug 28 '15