com.c3d.image.hvq
Class HVQMatcher
java.lang.Object
|
+--com.c3d.image.hvq.HVQMatcher
- public class HVQMatcher
- extends java.lang.Object
Constructor Summary |
HVQMatcher(int[][][] et,
float[][][] dt)
First parameter is a hierarchy of vector quantization
tables
Second parameter a pair of tables encoding the x and y
discrepancies appropriate for any pair of codebook entries |
HVQMatcher(java.lang.String dbname,
java.lang.String encodename,
java.lang.String dispname)
Initialises a matcher from a named database |
Method Summary |
Jimage |
match(Jimage leftorig,
Jimage rightorig)
Takes two images and returns x,y disparity images
disparities in fractions of source image dimensions
needed to move the left image points onto corresponding
points on the right image. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
HVQMatcher
public HVQMatcher(int[][][] et,
float[][][] dt)
- First parameter is a hierarchy of vector quantization
tables
Second parameter a pair of tables encoding the x and y
discrepancies appropriate for any pair of codebook entries
HVQMatcher
public HVQMatcher(java.lang.String dbname,
java.lang.String encodename,
java.lang.String dispname)
throws com.c3d.image.hvq.DatabaseException,
com.c3d.image.hvq.TransactionException
- Initialises a matcher from a named database
match
public Jimage match(Jimage leftorig,
Jimage rightorig)
- Takes two images and returns x,y disparity images
disparities in fractions of source image dimensions
needed to move the left image points onto corresponding
points on the right image.
The left image is quantized on a uniform grid of 4x4 squares,
the right image is quantized on 4 overlapping patterns of 8x8 squares,
identified by the red-purple, blue-purple, red-green and blue-green grids.
Thus each square in the left image is at the center of one larger square on
the right image under one of the 4 quantizations of that image