diewald_CV_kit.blobdetection
Class Pixel

java.lang.Object
  extended by 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x_

public final int x_

y_

public final int y_
Constructor Detail

Pixel

public Pixel(int x,
             int y)
initialize a new pixel

Parameters:
x - x-position
y - y-position
Method Detail

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