POV-Ray : Newsgroups : povray.beta-test : Shift of interpolated images : Shift of interpolated images Server Time
2 Jul 2024 10:34:52 EDT (-0400)
  Shift of interpolated images  
From: clipka
Date: 30 Apr 2010 08:52:53
Message: <4bdad2a5@news.povray.org>
The attached image (1) shows the effect of interpolation on images; from 
left to right:

- "interpolate 0", i.e. no interpolation
- "interpolate 2", i.e. bilinear
- "interpolate 3" (currently not supported)
- "interpolate 4", i.e. normalized distance

In all cases, the black dot is exactly at the center.

As can quite easily be seen, when interpolation is activated the image 
appears slightly shifted to the bottom-right, in the order of magnitude 
of half a pixel.

Normally I'd just fix that offset, but it has probably been there since 
eons - and changing it might actually break a few scenes that have 
deliberately worked around this issue (I have at least once designed 
such a scene).

How do you feel about it?

My personal vote would be to fix it nonetheless, to end up like shown in 
the attached image (2). (And yes, that's bicubic interpolation you see 
in the "interpolate 3" field.)


Post a reply to this message


Attachments:
Download '_interpolation_shift.png' (25 KB) Download '_interpolation_fix.png' (30 KB)

Preview of image '_interpolation_shift.png'
_interpolation_shift.png

Preview of image '_interpolation_fix.png'
_interpolation_fix.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.