12-02-2013 02:43 PM
I forgot to again insert the code. Excuse le for that.
It's different and it has something of a transform but its not quite it
12-03-2013 01:36 PM
Help, someone? 🙂
12-03-2013 06:15 PM
hi Sailiman,
Sailiman wrote:
So if a pixel is not zero;
where does this premise appear in your code? is this supposed to be a binary image?
If that's the case, I would suggest to apply the threshold(s) before calculating the Hough Transform
Sailiman wrote:
Then for the voting process I increase the value of every pixel by 1.
the accumulator array is nothing else than a 2d histogram. "voting" means to "increment" a bin of this histogram.
Again, I can't figure out, where this is supposed to be in your code.
Maybe I'm reading it wrong...
Furthermore, I would calculate the Hough Transform with regards to the image center which is for example at x0 = height/2 ; y0 = width/2
This is the result of my non-formula node based approach:
Regards,
Alex
12-04-2013 04:48 AM
Hello Alex,
Before the Hough I apply some preprocessing like Canny Edge Detector, Thresholding, etc..
As you mentioned my voting process is completely wrong, now thanks to you I understand a bit more about the Accumulator.
As all other people suggested, I tried the non formula node approach but I still didn't manage to properly apply the hough transform.
My visual coding skills really sucks.
Can you show me your code please? I do not intent to use it, I just want to have a proper example of a modus operandi.
Sincerely yours,
12-04-2013 07:14 AM
Here is my attempt with a Hough Transform with mostly blocks.
I'm just having trouble building the accumulator..
12-04-2013 10:11 AM - edited 12-04-2013 10:15 AM
I appreciate your block-based approach.
Here are my modifications:
I've seen the idea for the accumulator in this thread: http://forums.ni.com/t5/LabVIEW/Create-fast-intenstiy-histogram-without-Vision-toolkit/m-p/1790558/h...
Regards,
Alex
12-04-2013 02:18 PM - edited 12-04-2013 02:39 PM
Wow Labview never cease to surprise me, I've never heard of the fast placement structure before.
And what are the blocks which you connect Threshold Low and high to and the one you use to visualize the output? Is that a waveform Graph/Chart I've also never see it before.
Thanks in advance Alex
12-05-2013 05:31 AM - edited 12-05-2013 05:34 AM
I'm glad to help you
At the end of this thread Norbert_B from NI goes a bit into detail about the use of the in-placement structure in modern Labview
And what are the blocks which you connect Threshold Low and high to and the one you use to visualize the output?
That's the handy "In Range And Coerce.vi" (you can get this Information by putting your mouse cursor on the particular block and press ctrl+h)
Is that a waveform Graph/Chart I've also never see it before.
It's an intensity graph; I borrowed this idea from altenbach shown in this thread:
http://forums.ni.com/t5/LabVIEW/Overlay-plots-as-intensity-graph/m-p/211222#M119248
Moreover, you can drag+drop the snippet I posted in my last post directly into your Blockdiagram!
Regards,
Alex
12-05-2013 08:28 AM
Allright!
Yeah I know about the drag'ndrop feature but somehow it doesn't work. I just get the link on my labview.
But when I go on the official tutorials of NI then everything works fine.
After the exams I'm planning to make a blog about understanding the principles of Signal Processing and apply it in Labview in the hope to help other students/passsionates alike.
Cheers Alex
12-05-2013 12:29 PM - edited 12-05-2013 12:31 PM
Yeah I know about the drag'ndrop feature but somehow it doesn't work
Hmmm, the snippet seems to be compatible upward but not compatible downwards. For example, I was able to open snippets which I created with LabView 2011 in LabView 2013.
By the way, I also use the LabView 2013 f2 Patch.
I welcome your good intentions!
Regards,
Alex