cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
1,235 Views
Registered: ‎07-01-2017

Autofocus use sobel filter

Jump to solution

Dear all , somewhere i find sobel filter VHDL code and tested it, as shown in attached file. 

So i plan to implement  it in my motorized  autofocus  camera , I am not so good coder and math guy, but exactly know that need to count edges and find it by making moving by focusing stepper motor.. But cannot do this :(.

So has someone used sobel filter for making autofocus.? pls help ,

Tags (2)
IMG_2746.jpg
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Mentor
Mentor
1,348 Views
Registered: ‎02-24-2014

this is a tricky thing to do automatically, because as a camera changes focus, different things in the image will come into focus (foreground and background objects)..    There will be several peaks in the focus "metric" of good focus.

 

This paper explains some of the ways that focus can be measured:

 

https://cs.uwaterloo.ca/~vanbeek/Publications/spie2014.pdf

 

 

Don't forget to close a thread when possible by accepting a post as a solution.

View solution in original post

2 Replies
Highlighted
Mentor
Mentor
1,349 Views
Registered: ‎02-24-2014

this is a tricky thing to do automatically, because as a camera changes focus, different things in the image will come into focus (foreground and background objects)..    There will be several peaks in the focus "metric" of good focus.

 

This paper explains some of the ways that focus can be measured:

 

https://cs.uwaterloo.ca/~vanbeek/Publications/spie2014.pdf

 

 

Don't forget to close a thread when possible by accepting a post as a solution.

View solution in original post

Highlighted
Moderator
Moderator
1,125 Views
Registered: ‎11-09-2015

Hi @gabirmann,

 

The link provided by @jmcclusk looks relevant to your question. Did it helped you?

 

If your question is answered or your issue is solved, please kindly mark the response which helped as solution (click on "Accept as solution" buton below the reply)

If this is not solved/answered, please reply in the topic giving more information on your current status.

Thanks and Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos