Forums - Wrong result when using the fastCV haar transformation function

2 posts / 0 new
Last post
Wrong result when using the fastCV haar transformation function
wang.rui166
Join Date: 11 Oct 15
Posts: 1
Posted: Sun, 2015-10-11 22:05

Hi I try to do the haar wavelet transformation with my Y channel image data(a single plane image), I use the function fcvDWTHaaru8(ySrc,yWidth,yHeight,yStride,yDst,yWidth*sizeof(int16_t));

here ySrc is the pointer to my Y buffer and the data type is unit8*;

yWidth,yHeight,yStride is my image width,height and stride, yWidth = 4160, yheight = 3120 and yStride = 4160;

I apply a new buffer to store my transfromed result, int16_t* yDst = (int16_t*) malloc(yBuffersize*sizeof(int16_t)), yBuffersize is the size of  Y image buffer;

for the last param, I follow the instruction from this function, it should be the "srcWidth * sizeof(int16_t)"  (yWidth*sizeof(int16_t));

but when I dump the result from my mobile phone and use the YUV viewer software to check it (I  just do 1 level decomposition),

(LL,LH,HL,HH) the LH,HL,HH parts look OK, but there is no image info for the LL part, this LL part is all black in the YUV viewer,

I do not know how to figure out this problem, if anyone can help me? thanks  

 

 

  • Up0
  • Down0
jeff4s Moderator
Join Date: 4 Nov 12
Posts: 106
Posted: Mon, 2015-10-12 16:24

Hi,

LL occupies top left quadrant of the output image. If the other parts look good most likely LL will be good too. Can you check with a different image viewer?

Cheers,

-Jeff

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.