class: SimulatePlanarWorld
[24:7] extends: object
SimulatePlanarWorld wraps boofcv.simulation.SimulatePlanarWorld.
Renders a synthetic GrayF32 image of one or more planar surfaces
placed in a 3D world, viewed by a configured camera.
Members
- obj
Methods
-
SimulatePlanarWorld (
Obj = null)Creates or wraps a planar world simulator.
- @p
Objis an existing simulator Java object or null to create a new one.
- @p
-
enableHighAccuracy ()
Switches the renderer to higher accuracy mode.
-
setCamera (
object Camera)Sets the camera intrinsics.
- @p
Camerais a CameraPinhole, CameraPinholeBrown, or CameraUniversalOmni wrapper.
- @p
-
setWorldToCamera (
object Transform)Sets the world-to-camera rigid body transform.
- @p
Transformis a Se3_F64 wrapper or AussomJavaObject.
- @p
-
addSurface (
object SurfaceToWorld, double WidthMeters, object Texture)Adds a textured planar surface to the scene.
- @p
SurfaceToWorldis a Se3_F64 wrapper that places the surface in the world. - @p
WidthMetersis the physical width of the surface in meters. - @p
Textureis a GrayF32 wrapper or AussomJavaObject holding the surface texture.
- @p
-
resetScene ()
Removes every surface added with addSurface.
-
render ()
Renders the scene from the current camera pose.
- @r
Therendered GrayF32 Java object.
- @r
-
setBackground (
double Intensity)Sets the background fill color used where no surface is hit.
- @p
Intensityis the background pixel intensity (single channel float).
- @p
-
computePixel (
int SurfaceIndex, double X, double Y, object OutPixel)Computes the pixel coordinate of a point on a surface.
- @p
SurfaceIndexis the index of the surface added with addSurface. - @p
Xis the surface-local x coordinate in meters. - @p
Yis the surface-local y coordinate in meters. - @p
OutPixelis a Point2D_F64 Java object that receives the result.
- @p
-
getOutput ()
Gets the most recently rendered image.
- @r
AGrayF32 Java object.
- @r
-
getDepthMap ()
Gets the per-pixel depth map for the most recent render.
- @r
AGrayF32 Java object holding distance from the camera.
- @r
-
getRenderSampling ()
Gets the public renderSampling field.
- @r
Thesupersampling factor used by the renderer.
- @r
-
setRenderSampling (
int Sampling)Sets the public renderSampling field.
- @p
Samplingis the supersampling factor used by the renderer.
- @p
class: PointTrackerPerfectCloud
[122:7] extends: object
PointTrackerPerfectCloud wraps boofcv.simulation.PointTrackerPerfectCloud.
A test-fixture point tracker that projects a fixed 3D point cloud
into the current camera view and treats every visible point as a
tracked feature.
Members
- obj
Methods
-
PointTrackerPerfectCloud (
Obj = null)Creates or wraps a perfect-cloud point tracker.
- @p
Objis an existing tracker Java object or null to create a new one.
- @p
-
setCamera (
object Camera)Sets the camera intrinsics.
- @p
Camerais a CameraPinhole or CameraPinholeBrown wrapper.
- @p
-
process (
object Image)Processes one frame.
- @p
Imageis the input image. Only the dimensions are used; pixel data is ignored.
- @p
-
reset ()
Resets the tracker.
-
dropAllTracks ()
Drops every active track.
-
spawnTracks ()
Spawns new tracks from currently visible cloud points.
-
dropTrack (
object Track)Drops one track.
- @p
Trackis a PointTrack Java object. - @r
Trueif the track was dropped.
- @p
-
getFrameID ()
Gets the current frame id.
- @r
Theframe id.
- @r
-
getTotalActive ()
Gets the active track count.
- @r
Theactive count.
- @r
-
getTotalInactive ()
Gets the inactive track count.
- @r
Theinactive count.
- @r
-
getMaxSpawn ()
Gets the maximum number of tracks the tracker will spawn.
- @r
Themax spawn count.
- @r
-
getAllTracks (
Storage = null)Gets all tracks.
- @p
Storageis a Java list or null. - @r
AJava list of PointTrack objects.
- @p
-
getActiveTracks (
Storage = null)Gets active tracks.
- @p
Storageis a Java list or null. - @r
AJava list of PointTrack objects.
- @p
-
getInactiveTracks (
Storage = null)Gets inactive tracks.
- @p
Storageis a Java list or null. - @r
AJava list of PointTrack objects.
- @p
-
getDroppedTracks (
Storage = null)Gets dropped tracks.
- @p
Storageis a Java list or null. - @r
AJava list of PointTrack objects.
- @p
-
getNewTracks (
Storage = null)Gets new tracks spawned in the most recent frame.
- @p
Storageis a Java list or null. - @r
AJava list of PointTrack objects.
- @p
-
getImageType ()
Gets the input image type.
- @r
TheBoofCV ImageType.
- @r
-
get (
string Name)Gets a public field by name.
- @p
Nameis cloud, world_to_view, norm_to_pixel, width, height, or frameID. - @r
Thefield value.
- @p
-
set (
string Name, Value)Sets a public field by name.
- @p
Nameis cloud, world_to_view, norm_to_pixel, width, height, or frameID. - @p
Valueis the new field value.
- @p