Picture

scalacv.Picture
See thePicture companion trait
object Picture

Attributes

Companion
trait
Source
Graphics.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Picture.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def all(pictures: Seq[Picture]): Picture

Overlays a group of pictures, the first at the bottom.

Overlays a group of pictures, the first at the bottom.

Attributes

Source
Graphics.scala
def arc(center: Point, rx: Double, ry: Double, startDegrees: Double, endDegrees: Double, rotation: Double = ..., segments: Int = ...): Picture

An open elliptical arc from startDegrees to endDegrees (clockwise, since y is down).

An open elliptical arc from startDegrees to endDegrees (clockwise, since y is down).

Attributes

Source
Graphics.scala
def arrow(from: Point, to: Point, headLength: Double = ..., headAngle: Double = ...): Picture

A line with an arrowhead at to.

A line with an arrowhead at to.

Attributes

Source
Graphics.scala
def circle(center: Point, radius: Double): Picture

Attributes

Source
Graphics.scala
def cross(at: Point, size: Double = ...): Picture

An X cross marker.

An X cross marker.

Attributes

Source
Graphics.scala
def curve(p0: Point, c0: Point, c1: Point, p1: Point, segments: Int = ...): Picture

A cubic Bézier curve through the two endpoints, pulled toward the two control points.

A cubic Bézier curve through the two endpoints, pulled toward the two control points.

Attributes

Source
Graphics.scala
def dot(at: Point, radius: Double = ...): Picture

A filled dot (fill it with a colour; the default is white).

A filled dot (fill it with a colour; the default is white).

Attributes

Source
Graphics.scala
def ellipse(center: Point, rx: Double, ry: Double, rotation: Double = ..., segments: Int = ...): Picture

An ellipse with semi-axes rx/ry, rotation degrees turned. A closed shape, so it fills and dashes like any polygon (it is drawn as a fine polyline, which keeps the styling uniform).

An ellipse with semi-axes rx/ry, rotation degrees turned. A closed shape, so it fills and dashes like any polygon (it is drawn as a fine polyline, which keeps the styling uniform).

Attributes

Source
Graphics.scala
def grid(pictures: Seq[Picture], columns: Int, gap: Double = ...): Picture

Lays pictures out in a grid of columns columns, row by row, with gap pixels between cells. Each cell is the size of the largest picture, so ragged content still aligns.

Lays pictures out in a grid of columns columns, row by row, with gap pixels between cells. Each cell is the size of the largest picture, so ragged content still aligns.

Attributes

Source
Graphics.scala
def label(text: String, at: Point, textColor: Color = ..., background: Color = ..., padding: Int = ..., fontScale: Double = ..., font: Font = ...): Picture

A text label on a filled background box — the readable way to tag a detection. at is the box's top-left; the box is sized to the text plus padding on every side.

A text label on a filled background box — the readable way to tag a detection. at is the box's top-left; the box is sized to the text plus padding on every side.

Attributes

Source
Graphics.scala
def line(from: Point, to: Point): Picture

Attributes

Source
Graphics.scala
def marker(at: Point, color: Color, radius: Double = ...): Picture

A keypoint marker — a filled dot in color.

A keypoint marker — a filled dot in color.

Attributes

Source
Graphics.scala
def polygon(points: Seq[Point]): Picture

Attributes

Source
Graphics.scala
def polyline(points: Seq[Point], closed: Boolean = ...): Picture

Attributes

Source
Graphics.scala
def quadraticCurve(p0: Point, control: Point, p1: Point, segments: Int = ...): Picture

A quadratic Bézier curve from p0 to p1, bent toward control.

A quadratic Bézier curve from p0 to p1, bent toward control.

Attributes

Source
Graphics.scala
def rectangle(rect: Rect): Picture

Attributes

Source
Graphics.scala
def regularPolygon(center: Point, sides: Int, radius: Double, rotation: Double = ...): Picture

A regular sides-gon inscribed in a circle of radius, rotation degrees turned.

A regular sides-gon inscribed in a circle of radius, rotation degrees turned.

Attributes

Source
Graphics.scala
def roundedRectangle(rect: Rect, radius: Double): Picture

A rectangle with rounded corners of the given radius (clamped to half the shorter side).

A rectangle with rounded corners of the given radius (clamped to half the shorter side).

Attributes

Source
Graphics.scala
def sector(center: Point, rx: Double, ry: Double, startDegrees: Double, endDegrees: Double, rotation: Double = ..., segments: Int = ...): Picture

A filled pie slice: the arc from startDegrees to endDegrees closed back through the centre.

A filled pie slice: the arc from startDegrees to endDegrees closed back through the centre.

Attributes

Source
Graphics.scala
def star(center: Point, points: Int, outer: Double, inner: Double, rotation: Double = ...): Picture

A star with points points between outer and inner radii.

A star with points points between outer and inner radii.

Attributes

Source
Graphics.scala
def text(text: String, at: Point): Picture

Attributes

Source
Graphics.scala

Concrete fields

val empty: Picture

The empty picture — the identity for Picture.on.

The empty picture — the identity for Picture.on.

Attributes

Source
Graphics.scala