T
- Q
- public class KeypointVisualizer<T,Q extends Image<T,Q> & SinglebandImageProcessor.Processable<Float,FImage,Q>> extends Object
Constructor and Description |
---|
KeypointVisualizer(Q image,
List<? extends Keypoint> keys)
Construct the visualiser with the given image and keypoints.
|
Modifier and Type | Method and Description |
---|---|
Q |
drawCenter(T col)
Draw the centre point of the keypoints on an image
|
Q |
drawPatches(T boxColour,
T circleColour)
Draw the sampling boxes on an image.
|
static <T,Q extends Image<T,Q> & SinglebandImageProcessor.Processable<Float,FImage,Q>> |
drawPatchesInplace(Q image,
List<? extends Keypoint> keypoints,
T boxColour,
T circleColour)
Draw the SIFT features onto an image.
|
Map<Keypoint,Q> |
getPatches(int dim)
Extract the oriented sampling patches used in the construction of the
keypoints.
|
static Polygon |
getSamplingBox(Keypoint k)
Get the sampling area of an single feature as a polygon.
|
static Polygon |
getSamplingBox(Keypoint k,
float scincr)
Get the sampling area of an single feature as a polygon.
|
public KeypointVisualizer(Q image, List<? extends Keypoint> keys)
image
- the imagekeys
- the keypointspublic Map<Keypoint,Q> getPatches(int dim)
dim
- the patch size.public Q drawPatches(T boxColour, T circleColour)
boxColour
- the sampling box colourcircleColour
- the scale-circle colourpublic static <T,Q extends Image<T,Q> & SinglebandImageProcessor.Processable<Float,FImage,Q>> Q drawPatchesInplace(Q image, List<? extends Keypoint> keypoints, T boxColour, T circleColour)
T
- the pixel typeQ
- the image typeimage
- the image to draw onkeypoints
- the features to drawboxColour
- the colour of the sampling boxescircleColour
- the colour of the scale circlepublic Q drawCenter(T col)
col
- the colour to draw withpublic static Polygon getSamplingBox(Keypoint k)
k
- the featurepublic static Polygon getSamplingBox(Keypoint k, float scincr)
k
- the featurescincr
- the scaling factor to apply to the sampling area