public class OrthotopePixelModel extends MBFPixelClassificationModel
Modifier and Type | Field and Description |
---|---|
protected float[] |
max |
protected float[] |
min |
ndims
Constructor and Description |
---|
OrthotopePixelModel(float[] minCoords,
float[] maxCoords)
Construct with the given number box.
|
OrthotopePixelModel(int ndims)
Construct with the given number of dimensions.
|
Modifier and Type | Method and Description |
---|---|
protected float |
classifyPixel(Float[] pix) |
OrthotopePixelModel |
clone()
Clone the model
|
void |
learnModel(MBFImage... images)
Learn the model from the given
MBFImage s. |
getArray
classifyImage, estimate, numItemsToEstimate, predict
public OrthotopePixelModel(int ndims)
MBFImage
s
you wish to classify.ndims
- number of dimensionspublic OrthotopePixelModel(float[] minCoords, float[] maxCoords)
MBFImage
s
you wish to classify.minCoords
- coordinates of the corner of the box with the smallest coordinates.maxCoords
- coordinates of the corner of the box with the largest coordinates.protected float classifyPixel(Float[] pix)
classifyPixel
in class PixelClassificationModel<Float[],MBFImage>
public OrthotopePixelModel clone()
EstimatableModel
clone
in interface ImageClassificationModel<MBFImage>
clone
in interface EstimatableModel<MBFImage,FImage>
clone
in class PixelClassificationModel<Float[],MBFImage>
public void learnModel(MBFImage... images)
ImageClassificationModel
MBFImage
s.images
- the images to learn from