Forums - Hough's Line giving garbage

2 posts / 0 new
Last post
Hough's Line giving garbage
howardpang28
Join Date: 3 Aug 13
Posts: 3
Posted: Mon, 2014-01-06 15:47

I've been trying to process a greyscale (Y-channel) bitmap image, 320x240 with the Hough transform provided from FastCV.

fcvHoughLineu8

The function call is as follows:

uint32_t maxLines = 15;
uint32_t ndetLines;
fcvLine detLines[maxLines];
fcvHoughLineu8 ( (uint8_t*)dataBuf, width, height, 0, 1.0, maxLines, &ndetLines, detLines);

The output from the detLines returns static lines which doesn't change regardless of the image and the lines appear to be in a criss cross pattern as in the link http://rlv.zcache.com/black_and_white_crisscross_pattern_cloth_napkin-r9....

Has anyone successfully worked with this function and gotten it working. If you have it would be super appreciated if you post your code.

Thanks!

  • Up0
  • Down0
bijanf
Join Date: 2 Apr 13
Posts: 1
Posted: Fri, 2014-01-10 18:22

 

For the stride parameter, try using the image width instead of zero.

For the threshold, try using 0.25 instead of 1.0.

 

Hope that 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.