j2d.video.producers
Class RangeMap

java.lang.Object
  extended by j2d.video.producers.RangeMap

public class RangeMap
extends java.lang.Object


Field Summary
static int[] map
           
 
Constructor Summary
RangeMap()
           
 
Method Summary
static int getCalibratedLeftToRightDepth(int x)
          Use the crop rectangle to offset the y locations, for pin cushion computation uses a right-hand (+1) diffraction image.
static int getCalibratedRightToLeftDepth(int x)
          Use the crop rectangle to offset the y locations, for pin cushion computation uses a left-hand (-1) diffraction image.
static int getPinCushionCompensate(int x, int y)
          The logtec quickcam 9000 pro is producing pin cushion effects that are compensted for, via the following method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

public static int[] map
Constructor Detail

RangeMap

public RangeMap()
Method Detail

getCalibratedRightToLeftDepth

public static int getCalibratedRightToLeftDepth(int x)
Use the crop rectangle to offset the y locations, for pin cushion computation uses a left-hand (-1) diffraction image. Use a right to left search.

Parameters:
x - relative x position from the left.
Returns:
depth as a function of the x and y coordiantes, along with the crop.

getCalibratedLeftToRightDepth

public static int getCalibratedLeftToRightDepth(int x)
Use the crop rectangle to offset the y locations, for pin cushion computation uses a right-hand (+1) diffraction image. Use a left to right search.

Parameters:
x - relative x position from the left.
Returns:
depth as a function of the x and y coordinates, along with the crop.

getPinCushionCompensate

public static int getPinCushionCompensate(int x,
                                          int y)
The logtec quickcam 9000 pro is producing pin cushion effects that are compensted for, via the following method. Derivation is empirical, based on a vertical straight obtained from the back of a resolution wedge. Now, distance from right-hand side is linear in depth.

Parameters:
x - profile displacement from turntable center
y - distance from top
Returns:
new x displace, with pin cushion compensate.