public class PixelRecord extends Object implements Comparable<PixelRecord>
Constructor and Description |
---|
PixelRecord(Cursor2D cursor,
double value)
Create pixel record with cursor position and double value
|
PixelRecord(int x,
int y,
double value)
Create pixel record with cursor position and double value
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PixelRecord p2)
Compare with a pixel record based on its value and
timestamp
|
double |
euclideanDistance(PixelRecord pr)
Calculate Euclidean distance to another pixel record
|
Cursor2D |
getCursor() |
double |
getValue() |
public PixelRecord(Cursor2D cursor, double value)
cursor
- pixel position in 2D coordinatesvalue
- pixel intensity valuepublic PixelRecord(int x, int y, double value)
x
- the x-position of the recordy
- the y-position of the recordvalue
- pixel intensity valuepublic Cursor2D getCursor()
public double getValue()
public int compareTo(PixelRecord p2)
compareTo
in interface Comparable<PixelRecord>
p2
- pixel record to compare withpublic double euclideanDistance(PixelRecord pr)
pr
- pixel record to calculate distance toCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.