Ask Your Question
0

How to use MedianBlur to Mat data CV_32FC1

asked 2015-08-28 11:25:30 -0500

hiwaa gravatar image

updated 2015-08-28 11:37:59 -0500

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 ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-28 11:36:59 -0500

LBerger gravatar image

updated 2015-08-28 13:01:02 -0500

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

edit flag offensive delete link more

Comments

Thank you , so the size means kernel size?

hiwaa gravatar imagehiwaa ( 2015-08-28 12:37:50 -0500 )edit

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

LBerger gravatar imageLBerger ( 2015-08-28 13:00:44 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-08-28 11:25:30 -0500

Seen: 105 times

Last updated: Aug 28 '15