Forums - Special data format for fcvMseru8

4 posts / 0 new
Last post
Special data format for fcvMseru8
DaniilPattersson
Join Date: 17 Jul 12
Location: Russia
Posts: 23
Posted: Mon, 2012-07-23 06:27

Hi guys,

trying to use fcvMseru8 on grayscale data, but it's work strange - nothing found (on image contours exist). Is any special data format needed (YCbCr or etc)?

  • Up0
  • Down0
jeff4s Moderator
Join Date: 14 Mar 12
Posts: 54
Posted: Tue, 2012-07-24 13:57

Yes the function fcvMseru8expects grayscale input image. If you can share the source image for which this function seems to behave unexpectedly, we can investigate whether it’s due to breakdown of algorithm or some other reason. 

Cheers,

-Jeff

  • Up0
  • Down0
DaniilPattersson
Join Date: 17 Jul 12
Location: Russia
Posts: 23
Posted: Wed, 2012-07-25 01:34

Hi! Here the link bit.ly/MHixKh.

My parameters are:

unsigned int align = 16;
unsigned int channels = 1;
unsigned int delta = 1;
unsigned int minArea = 1;
unsigned int maxArea = widht * height;
float maxVariation = 0.5;
float minDiversity = 0.5;	
void* mserHandle;
unsigned int maxContours = 10;
unsigned int numContours = 0;
unsigned int* numPointsInContour = (unsigned int*) fcvMemAlloc(maxContours * sizeof(unsigned int), align);
unsigned int* pointsArray = (unsigned int*) fcvMemAlloc(maxContours * width * height * sizeof(unsigned int), align);
unsigned int dataStride = width * channels * sizeof(uint8_t);

  • Up0
  • Down0
DaniilPattersson
Join Date: 17 Jul 12
Location: Russia
Posts: 23
Posted: Tue, 2012-07-31 03:16

Thanks a lot, this helps.

  • 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.