diewald_CV_kit.blobdetection
Class Pixel
java.lang.Object
diewald_CV_kit.blobdetection.Pixel
public final class Pixel
- extends Object
the class Pixel is used for saving pixel coordinates, id-labeling (connected component labeling).
- Author:
- thomas diewald (c) 2011
Field Summary |
int |
x_
|
int |
y_
|
Constructor Summary |
Pixel(int x,
int y)
initialize a new pixel |
Method Summary |
Blob |
getBlob()
returns the blob, this pixel is part of. |
boolean |
isOnAContour()
returns true, if this pixel, is part of a contour. |
x_
public final int x_
y_
public final int y_
Pixel
public Pixel(int x,
int y)
- initialize a new pixel
- Parameters:
x
- x-positiony
- y-position
getBlob
public final Blob getBlob()
- returns the blob, this pixel is part of.
- Returns:
- the blob, this pixel is part of.
isOnAContour
public final boolean isOnAContour()
- returns true, if this pixel, is part of a contour.
- Returns:
- true, if this pixel, is part of a contour.
Processing library diewald_CV_kit by Thomas Diewald. (C) 2012