pamparana
- 123
- 0
I will give a small background and explain the variables and the system first. I have two images which are observed and are constant and we can treat them as continuous functions and I will call them r and f. In my problem, I am trying to find a continuous transform (which is very non-linear) that makes f looks like r according to some similarity criteria or cost function. I will call this transformation function t and I am trying to estimate its parameters w.
So, the integral I need to compute turns out to be
<br /> Z = \int_{-\infty}^{\infty} \exp-{\frac{\left( r(i) - f\left(t(w)\right)\right)^2}{2\sigma^2}} \, dw<br />
where \sigma is a constant. Now, given a constant linear function A, f(t(w)) is computed as:
<br /> f(t(i, w)) = (\lceil{Aw}\rceil - Aw) * f(\lfloor{Ax}\rfloor) + (Aw - \lfloor{Aw}\rfloor) * f(\lceil{Ax}\rceil)<br />
where \lceil \rceil gives the ceiling function and \lfloor \rfloor is the floor function. This basically means that I am using linear interpolation to make the transformation function continuous. This is because the images and the transformation are defined in the digital domain and are computed only on a uniform grid (corresponding to the pixel locations) and the transformation t is telling me what the location of a pixel i in image r is in image f through w.
Can someone tell me if I can compute such an integral? My first instinct was to use Taylor series to linearise t(w) but it was pointed out that it is not a good idea as t(w) is in the integral and we are integrating over w. So the higher order terms will not cancel out and I cannot justify that approximation.
My Maths and Calculus skills are not great at all. Please do let me know if I need to generate more information about t to be able to do this integration.
So, the integral I need to compute turns out to be
<br /> Z = \int_{-\infty}^{\infty} \exp-{\frac{\left( r(i) - f\left(t(w)\right)\right)^2}{2\sigma^2}} \, dw<br />
where \sigma is a constant. Now, given a constant linear function A, f(t(w)) is computed as:
<br /> f(t(i, w)) = (\lceil{Aw}\rceil - Aw) * f(\lfloor{Ax}\rfloor) + (Aw - \lfloor{Aw}\rfloor) * f(\lceil{Ax}\rceil)<br />
where \lceil \rceil gives the ceiling function and \lfloor \rfloor is the floor function. This basically means that I am using linear interpolation to make the transformation function continuous. This is because the images and the transformation are defined in the digital domain and are computed only on a uniform grid (corresponding to the pixel locations) and the transformation t is telling me what the location of a pixel i in image r is in image f through w.
Can someone tell me if I can compute such an integral? My first instinct was to use Taylor series to linearise t(w) but it was pointed out that it is not a good idea as t(w) is in the integral and we are integrating over w. So the higher order terms will not cancel out and I cannot justify that approximation.
My Maths and Calculus skills are not great at all. Please do let me know if I need to generate more information about t to be able to do this integration.
Last edited: