Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problems with cvSmooth

Hello,

I am using the VLC application and I have implemented some methods to create a virtual image using a format called 2D plus depth map in a c program.

I have used OpenCV library and i achieve some bad pixels in the image when i use the function called cvSmooth: cvSmooth(image_depth, depth_procesado, CV_GAUSSIAN, 11, 0, 0, 0);

I don't know if that thread that shows those frames on the screen of the device has a frame rate faster than the frames are smoothed or the implementation of the function is wrong.

// Mapa de profundidad del vídeo:
IplImage* image_depth = cvCreateImage( cvSize(w_i/2, h_i), IPL_DEPTH_8U, 3);
uchar *data_depth = (uchar *)image_depth->imageData;

  ...

 IplImage* depth_procesado = cvCreateImage(cvGetSize(image_depth), IPL_DEPTH_8U, image_depth->nChannels);
 uchar *data_depth_process = (uchar *)depth_procesado->imageData;

 // Imagen del mapa de profundidad procesado simétricamente.
cvSmooth(image_depth, depth_procesado, CV_GAUSSIAN, 11, 0, 0, 0);

The version is OpenCV-2.4.5-android-sdk. Thanks so much!

Problems with cvSmooth

Hello,

I am using the VLC application and I have implemented some methods to create a virtual image using a format called 2D plus depth map in a c C program.

I have used OpenCV library and i achieve some bad pixels in the image when i use the function called cvSmooth: cvSmooth(image_depth, depth_procesado, CV_GAUSSIAN, 11, 0, 0, 0);

I don't know if that thread that shows those frames on the screen of the device has a frame rate faster than the frames are smoothed or the implementation of the function is wrong.

// Mapa de profundidad del vídeo:
IplImage* image_depth = cvCreateImage( cvSize(w_i/2, h_i), IPL_DEPTH_8U, 3);
uchar *data_depth = (uchar *)image_depth->imageData;

  ...

 IplImage* depth_procesado = cvCreateImage(cvGetSize(image_depth), IPL_DEPTH_8U, image_depth->nChannels);
 uchar *data_depth_process = (uchar *)depth_procesado->imageData;

 // Imagen del mapa de profundidad procesado simétricamente.
cvSmooth(image_depth, depth_procesado, CV_GAUSSIAN, 11, 0, 0, 0);

The version is OpenCV-2.4.5-android-sdk. Thanks so much!

click to hide/show revision 3
retagged

updated 2013-10-15 05:08:27 -0600

berak gravatar image

Problems with cvSmooth

Hello,

I am using the VLC application and I have implemented some methods to create a virtual image using a format called 2D plus depth map in a C program.

I have used OpenCV library and i achieve some bad pixels in the image when i use the function called cvSmooth: cvSmooth(image_depth, depth_procesado, CV_GAUSSIAN, 11, 0, 0, 0);

I don't know if that thread that shows those frames on the screen of the device has a frame rate faster than the frames are smoothed or the implementation of the function is wrong.

// Mapa de profundidad del vídeo:
IplImage* image_depth = cvCreateImage( cvSize(w_i/2, h_i), IPL_DEPTH_8U, 3);
uchar *data_depth = (uchar *)image_depth->imageData;

  ...

 IplImage* depth_procesado = cvCreateImage(cvGetSize(image_depth), IPL_DEPTH_8U, image_depth->nChannels);
 uchar *data_depth_process = (uchar *)depth_procesado->imageData;

 // Imagen del mapa de profundidad procesado simétricamente.
cvSmooth(image_depth, depth_procesado, CV_GAUSSIAN, 11, 0, 0, 0);

The version is OpenCV-2.4.5-android-sdk. Thanks so much!