🔒 Locked
image processing
Advertisement
Original Post
Probably refers to the size of the kernel used to convolve an image. Think of replacing every pixel (target) in an image with some kind of aggregate measure of itself and the pixels around it (source). You're applying a local average (or similar function) at every pixel. The filter size refers to how many source pixels around the target pixel go into the calculation.
Depends on your goals, you want to do it in realtime or that would be offline application, kind of a filters in Photoshop?
Calucalting grey or other values depends on filter algoritm, but in general you make a loop where you would read sample from texture, one by one, and do your math on them. For example simple box filter would read 3x3 samples from texture, sum them and divide by 9. Sampling is made by calculating proper texture coordinates. You dont need matrix for this, it can be a simple array:
[-1,-1]
[ 0,-1]
[ 1,-1]
[-1, 0]
[ 0, 0]
[ 1, 0]
[-1, 1]
[ 0, 1]
[ 1, 1]
Calucalting grey or other values depends on filter algoritm, but in general you make a loop where you would read sample from texture, one by one, and do your math on them. For example simple box filter would read 3x3 samples from texture, sum them and divide by 9. Sampling is made by calculating proper texture coordinates. You dont need matrix for this, it can be a simple array:
[-1,-1]
[ 0,-1]
[ 1,-1]
[-1, 0]
[ 0, 0]
[ 1, 0]
[-1, 1]
[ 0, 1]
[ 1, 1]
A quick google search returned this:
http://mplab.ucsd.edu/tutorials/pdfs/gabor.pdf
If you aren't familiar with impulse response functions and are new in general to image processing, you might want to read up some signal processing fundamentals first. A very good resource is 'Principles Computerized Tomographic imaging' by Kak and Slaney. The book is available as separate chapters in PDF here:
http://www.slaney.org/pct/
The first couple of chapters might be very helpful.
http://mplab.ucsd.edu/tutorials/pdfs/gabor.pdf
If you aren't familiar with impulse response functions and are new in general to image processing, you might want to read up some signal processing fundamentals first. A very good resource is 'Principles Computerized Tomographic imaging' by Kak and Slaney. The book is available as separate chapters in PDF here:
http://www.slaney.org/pct/
The first couple of chapters might be very helpful.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement