public abstract class FeatureCalculatorLBPJFeatureLib extends FeatureCalculator
Operators implementing LBPs based on the JFeatureLib are expected to support neighborhoods with a given radius and number of neighboring pixels. In addition they are expected to either return LBP code histograms for each pixel in an image or for the image as a whole.
| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureCalculatorLBPJFeatureLib.FeatureType
Type of feature to be extracted.
|
| Modifier and Type | Field and Description |
|---|---|
protected double |
baselineConstant
Baseline constant.
|
protected int |
histBins
Number of histogram bins.
|
protected int |
histoRegionSize
Size of region for histogram binning.
|
protected int |
numberNeighbors
Number of neighboring pixels to consider for LBP codes.
|
protected double |
radius
Neighborhood radius for LBP code calculation.
|
protected FeatureCalculatorLBPJFeatureLib.FeatureType |
resultType
Type of result features to be returned.
|
inImg, resultObj| Constructor and Description |
|---|
FeatureCalculatorLBPJFeatureLib()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract JFeatureLibLBPAdapter |
getFeatureOp()
Get instance of actual feature calculator.
|
protected FeatureCalculatorLBPResult |
getResultDataObjectInvalid(int dim)
Helper method to allow for requesting invalid dummy results.
|
void |
operate() |
void |
setBaselineConstant(double c)
Specify baseline constant for thresholding.
|
void |
setFeatureType(FeatureCalculatorLBPJFeatureLib.FeatureType t)
Specify type of features to be calculated.
|
void |
setHistBins(int n)
Specify number of histogram bins.
|
void |
setHistoRegionSize(int n)
Specify region for histogram binning.
|
void |
setNumberNeighbors(int n)
Specify number of neighbors to consider for LBP code calculation.
|
void |
setRadius(double r)
Specify radius of neighborhood for LBP code calculation.
|
getResultData, setInputImagereadResolveaddOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory@Parameter(label="Type of Result",
required=true,
direction=IN,
supplemental=false,
description="Kind of feature vectors to be returned.",
dataIOOrder=1)
protected FeatureCalculatorLBPJFeatureLib.FeatureType resultType
@Parameter(label="Number of Neighbor Pixels",
required=true,
direction=IN,
supplemental=false,
description="Number of neighbor pixels to consider.",
dataIOOrder=2)
protected int numberNeighbors
@Parameter(label="Radius of Neighborhood",
required=true,
direction=IN,
supplemental=false,
description="Radius of neighborhood around center.",
dataIOOrder=3)
protected double radius
@Parameter(label="Size of Histogram Region",
required=true,
direction=IN,
supplemental=false,
description="Size of region used for histogram binning.",
dataIOOrder=4)
protected int histoRegionSize
@Parameter(label="Number of Histograms Bins",
required=true,
direction=IN,
supplemental=false,
description="Number of Histogram Bins.",
dataIOOrder=5)
protected int histBins
@Parameter(label="Baseline Constant in Thresholding",
required=true,
direction=IN,
supplemental=false,
dataIOOrder=6,
description="Baseline constant used in thresholding.")
protected double baselineConstant
public FeatureCalculatorLBPJFeatureLib()
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException - Thrown in case of failure.protected abstract JFeatureLibLBPAdapter getFeatureOp()
public void operate()
operate in class de.unihalle.informatik.Alida.operator.ALDOperatorpublic void setHistoRegionSize(int n)
n - Size of region.public void setHistBins(int n)
n - Number of bins to use.public void setNumberNeighbors(int n)
n - Number of neighbors.public void setRadius(double r)
r - Radius of neighborhood.public void setBaselineConstant(double c)
c - Constant to apply.public void setFeatureType(FeatureCalculatorLBPJFeatureLib.FeatureType t)
t - Feature type to extract.protected FeatureCalculatorLBPResult getResultDataObjectInvalid(int dim)
FeatureCalculatorgetResultDataObjectInvalid in class FeatureCalculatordim - Desired dimension of output object.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.