|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfeatures.filterBanks.FilterBank
features.filterBanks.Stereo
public class Stereo
This class implements a stereo filterbank, i.e. it computes a depth map at different scales. It uses a physiologically plausible steroe algorithm that consists of simple cell and complex cell computations from right and left images using phase shifted horizontally oriented Gabor wavelets with fixed relationship of Gaussian window scale and spatial frequency of the cosine. Copyright (c) 1999-2005, Michael Abramoff. All rights reserved.
| Field Summary |
|---|
| Fields inherited from class features.filterBanks.FilterBank |
|---|
OPPONENCIES |
| Constructor Summary | |
|---|---|
Stereo(float[] scales,
float[] phasesleft,
float[] phasesright,
int[] channels)
|
|
Stereo(float[] scales,
float[] xshifts,
int[] channels)
|
|
Stereo(float[] scales,
int[] channels)
|
|
| Method Summary | |
|---|---|
static float[] |
complexcell(float[] image_left,
float[] image_right,
int width,
double s,
double w,
double phil,
double phir)
Compute complex cell output from left and right images for phase phil/r, spatial frequency w and width s. |
static Feature |
D(float[] image_left,
float[] image_right,
int width,
double scale,
float[] xshifts,
java.lang.String extraText)
Calculate a depth map at the chosen scale. |
Feature |
depth(float[] left_image,
float[] right_image,
int width,
java.lang.String extraText)
Compute a depth map. |
static float[] |
disparity(float[] image_left,
float[] image_right,
int width,
double s,
float[] phases_left,
float[] phases_right)
Compute disparity from left and right images for shift s. |
Feature |
filter(int filternumber,
int[] left_image,
int[] right_image,
int width,
java.lang.String extraText)
Apply the filter to a stereo pair. |
int |
getNumber()
Return the number of filters in this filter bank. |
static float[] |
linzeros(float[][] mys,
float[] yxs,
int width,
int binning)
Fit a linear regression line to each of the vectors 0..N*width in matrix[Nxwidth][M] (which is an image of vectors) and return a vector with the zerocrossings of the regression line. |
static float[] |
linzerosOld(float[][] mys,
float[] yxs,
int width,
int binning)
Deprecated. |
static java.lang.String |
name(double scale,
int color,
java.lang.String extraText)
|
java.lang.String |
name(int filternumber,
java.lang.String preString)
Get the feature name for filternumber. |
static float[] |
quadraturepair(float[] image_left,
float[] image_right,
int width,
double s,
double w,
double phil,
double phir)
Compute the output of a quadrature pair of simples cell for phase phil/r, spatial frequency w and width s. |
static Feature |
S(float[] image_left,
float[] image_right,
int width,
double[] params,
java.lang.String extraText)
Wrapper for steroe disparity operations. |
| Methods inherited from class features.filterBanks.FilterBank |
|---|
scaleSet, thetaSet |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stereo(float[] scales,
int[] channels)
public Stereo(float[] scales,
float[] xshifts,
int[] channels)
public Stereo(float[] scales,
float[] phasesleft,
float[] phasesright,
int[] channels)
| Method Detail |
|---|
public int getNumber()
FilterBank
getNumber in class FilterBank
public java.lang.String name(int filternumber,
java.lang.String preString)
FilterBank
name in class FilterBank
public static java.lang.String name(double scale,
int color,
java.lang.String extraText)
public Feature filter(int filternumber,
int[] left_image,
int[] right_image,
int width,
java.lang.String extraText)
throws java.lang.Exception
java.lang.Exception
public Feature depth(float[] left_image,
float[] right_image,
int width,
java.lang.String extraText)
throws java.lang.Exception
java.lang.Exception
public static Feature S(float[] image_left,
float[] image_right,
int width,
double[] params,
java.lang.String extraText)
throws java.lang.Exception
java.lang.Exception
public static float[] quadraturepair(float[] image_left,
float[] image_right,
int width,
double s,
double w,
double phil,
double phir)
throws java.lang.Exception
image_left - the left imageimage_right - the right image.width - the width of these imagess - the scale of the Gabor wavelet.w - the (spatial) frequency of the Gabor wavelet (in radians per degree, w = 2PIf in cycles per degree).phil, - the phase of the left Gabor wavelet (in radians).phir, - the phase of the right Gabor wavelet (in radians).
java.lang.Exception
public static float[] complexcell(float[] image_left,
float[] image_right,
int width,
double s,
double w,
double phil,
double phir)
throws java.lang.Exception
image_left - the left imageimage_right - the right image.width - the width of these imagesxshift - the x shift to perform.s - the scale.w - the frequency of the Gabor wavelet.phi, - the phase of the Gabor wavelet.
java.lang.Exception
public static float[] disparity(float[] image_left,
float[] image_right,
int width,
double s,
float[] phases_left,
float[] phases_right)
throws java.lang.Exception
image_left - the left imageimage_right - the right image.width - the width of these imagesxshift - the x shift to perform.s - the scale.w - the frequency of the Gabor wavelet.phi, - the phase of the Gabor wavelet.
java.lang.Exception
public static Feature D(float[] image_left,
float[] image_right,
int width,
double scale,
float[] xshifts,
java.lang.String extraText)
throws java.lang.Exception
image_left - the left imageimage_right - the right image.width - the width of these imagesxshifts - the x shifts to perform.scale - the scales at which to perform the shift (firtst do the convolution with a GaussianDerivative kernel of order and scale).
java.lang.Exception
public static float[] linzeros(float[][] mys,
float[] yxs,
int width,
int binning)
mys - a matrix[N*width][M] of y values, which is an image.width - the width in pixels of m.binning: - how many pixels to bin over in vertical and horizontal directions of the image.yxs - a vector with the x values corresponding to the y - values.
public static float[] linzerosOld(float[][] mys,
float[] yxs,
int width,
int binning)
mys - a matrix[N*width][M] of y values, which is an image.width - the width in pixels of m.binning: - how many pixels to bin over in vertical and horizontal directions of the image.yxs - a vector with the x values corresponding to the y - values.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||