Package

net.sf.ij_plugins

util

Permalink

package util

Various utility methods.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class PerspectiveTransform extends AnyRef

    Permalink

    A 2D perspective (or projective) transform.

    A 2D perspective (or projective) transform.

    A perspective transformation is capable of mapping an arbitrary quadrilateral into another arbitrary quadrilateral, while preserving the straightness of lines. Unlike an affine transformation, the parallelism of lines in the source is not necessarily preserved in the output.

    Such a coordinate transformation can be represented by a 3x3 matrix which transforms homogeneous source coordinates (x, y, 1) into destination coordinates (x', y', w). To convert back into non-homogeneous coordinates (X, Y), x' and y' are divided by w.

    [ x']   [  m00  m01  m02  ] [ x ]   [ m00x + m01y + m02 ]
    [ y'] = [  m10  m11  m12  ] [ y ] = [ m10x + m11y + m12 ]
    [ w ]   [  m20  m21  m22  ] [ 1 ]   [ m20x + m21y + m22 ]
    
    x' = (m00x + m01y + m02)
    y' = (m10x + m11y + m12)
    
    w  = (m20x + m21y + m22)
    
    X = x' / w
    Y = y' / w

    This implementation was inspired by Java Advanced Imaging.

Value Members

  1. object IJPUtils

    Permalink

    Internal utilities.

  2. object IJTools

    Permalink

    Helper methods for working with ImageJ.

  3. object ImageConverter

    Permalink

    Tools for converting images between AWT and JavaFX.

  4. object PerspectiveTransform

    Permalink

    Factory methods for creating projective transforms.

  5. def clipUInt8(v: Double): Int

    Permalink

    Clip input value to range suitable for an 8-bit unsigned integer: 0 to 255.

    Clip input value to range suitable for an 8-bit unsigned integer: 0 to 255.

    Values in the range will be rounded to the closest integer. Values less than 0 will be set to 0. Values greater than 255 will be set to 255.

    Annotations
    @inline()
  6. def clipUInt8(a: Array[Double]): Array[Int]

    Permalink

    Clip all elements of the input array to range suitable for an 8-bit unsigned integer: 0 to 255.

    Clip all elements of the input array to range suitable for an 8-bit unsigned integer: 0 to 255.

    Values in the range will be rounded to the closest integer. Values less than 0 will be set to 0. Values greater than 255 will be set to 255.

  7. def clipUInt8D(v: Double): Double

    Permalink

    Clip input value to the range if an 8-bit unsigned integer: 0 to 255, but do not modify decimal places within the range.

    Clip input value to the range if an 8-bit unsigned integer: 0 to 255, but do not modify decimal places within the range.

    Values in the range will not be changed. Values less than 0 will be set to 0. Values greater than 255 will be set to 255.

    Annotations
    @inline()
  8. def clipUInt8D(a: Array[Double]): Array[Double]

    Permalink

    Clip input value to the range if an 8-bit unsigned integer: 0 to 255, but do not modify decimal places within the range.

    Clip input value to the range if an 8-bit unsigned integer: 0 to 255, but do not modify decimal places within the range.

    Values in the range will not be changed. Values less than 0 will be set to 0. Values greater than 255 will be set to 255.

  9. def delta(a: Array[Double], b: Array[Double]): Double

    Permalink

    Distance between points.

    Distance between points. For points in CIE L*a*b* color space it is equivalent to delta E 1974.

    a

    first point.

    b

    second point.

    returns

    distance

Inherited from AnyRef

Inherited from Any

Ungrouped