> > Is the algorithms behind this [Interpolation] free ?
>
> I hope so. If someone patented this :
>
> interpolated_pixel(between_pixel_1_and_pixel_2)=
> ( pixel_1*distance_to_1+
> pixel_2*distance_to_2) /
> ( distance_to_1+distance_to_2 )
>
> he is definitely insane.
In deed. Just as me. Of course it must be:
interpolated_pixel(between_pixel_1_and_pixel_2)=
( pixel_1*distance_to_2+
pixel_2*distance_to_1) /
( distance_to_1+distance_to_2 )
As otherwise you'd swap the direction of the gradient.
CU, ANdy
-- = Andreas Beck | Email : <andreas.beck@ggi-project.org> =
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com