com.kuka.nav.object.filter
Class RectangleRestriction

java.lang.Object
  extended by com.kuka.nav.object.filter.Restriction
      extended by com.kuka.nav.object.filter.RectangleRestriction
All Implemented Interfaces:
com.kuka.parameters.IParameter

public class RectangleRestriction
extends Restriction

Defines a search space restriction that allows only detections inside a rectangle, defined relative to the centre of the searcher to the centre of detections.


Method Summary
 RectangleRestriction copy()
           
 Double getMaxX()
           
 Double getMaxY()
           
 Double getMinX()
           
 Double getMinY()
           
 RectangleRestriction setMax(double x, double y)
          Sets the maximum relative X and Y offsets of detections.
 RectangleRestriction setMaxX(double x)
          Sets the maximum relative X-offset of detections.
 RectangleRestriction setMaxY(double y)
          Sets the maximum relative Y-offset of detections.
 RectangleRestriction setMin(double x, double y)
          Sets the minimum relative X and Y offsets of detections.
 RectangleRestriction setMinX(double x)
          Sets the minimum relative X-offset of detections.
 RectangleRestriction setMinY(double y)
          Sets the minimum relative Y-offset of detections.
 
Methods inherited from class com.kuka.nav.object.filter.Restriction
contourDistance, contourDistance, orientation, rectangle, rectangle, region
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setMinX

public RectangleRestriction setMinX(double x)
Sets the minimum relative X-offset of detections.

Parameters:
x - The new minimum x-offset.
Returns:
This restriction.

setMinY

public RectangleRestriction setMinY(double y)
Sets the minimum relative Y-offset of detections.

Parameters:
y - The new minimum Y-offset.
Returns:
This restriction.

setMaxX

public RectangleRestriction setMaxX(double x)
Sets the maximum relative X-offset of detections.

Parameters:
x - The new maximum X-offset.
Returns:
This restriction.

setMaxY

public RectangleRestriction setMaxY(double y)
Sets the maximum relative Y-offset of detections.

Parameters:
y - The new maximum Y-offset.
Returns:
This restriction.

setMin

public RectangleRestriction setMin(double x,
                                   double y)
Sets the minimum relative X and Y offsets of detections.

Parameters:
x - The new minimum X-offset.
y - The new minimum Y-offset.
Returns:
This restriction.

setMax

public RectangleRestriction setMax(double x,
                                   double y)
Sets the maximum relative X and Y offsets of detections.

Parameters:
x - The new maximum X-offset.
y - The new maximum Y-offset.
Returns:
This restriction.

getMinX

public Double getMinX()
Returns:
The minimum X-offset or null if none is set.

getMinY

public Double getMinY()
Returns:
The minimum Y-offset or null if none is set.

getMaxX

public Double getMaxX()
Returns:
The maximum X-offset or null if none is set.

getMaxY

public Double getMaxY()
Returns:
The maximum Y-offset or null if none is set.

copy

public RectangleRestriction copy()
Specified by:
copy in interface com.kuka.parameters.IParameter
Specified by:
copy in class Restriction


Copyright © 2019. All rights reserved.