Package boofcv.misc
Class DiscretizedCircle
java.lang.Object
boofcv.misc.DiscretizedCircle
Functions related to discretized circles for image processing
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
coordinates
(double radius, DogArray<Point2D_I32> coordinates) static int[]
imageOffsets
(double radius, int imgWidth) Computes the offsets for a discretized circle of the specified radius for an image with the specified width.static int[][]
imageOffsets2
(double radius)
-
Constructor Details
-
DiscretizedCircle
public DiscretizedCircle()
-
-
Method Details
-
imageOffsets
public static int[] imageOffsets(double radius, int imgWidth) Computes the offsets for a discretized circle of the specified radius for an image with the specified width.- Parameters:
radius
- The radius of the circle in pixels.imgWidth
- The row step of the image- Returns:
- A list of offsets that describe the circle
-
coordinates
-
imageOffsets2
public static int[][] imageOffsets2(double radius)
-