Options
All
  • Public
  • Public/Protected
  • All
Menu

Helper for get detailed information from the frame of the image as RAW pixels array, with defined width and height

Hierarchy

  • FrameHelper

Index

Methods

Static Private calculateFrameQuality

  • calculateFrameQuality(rgbaImgData: Uint8ClampedArray, width: number, height: number): number
  • Calculate frame quality

    Parameters

    • rgbaImgData: Uint8ClampedArray

      is an RGB array (3n)=>RED, (3n+1)=>GREEN, (3n+2)=>BLUE, where n is pixel index in 2D grid

    • width: number

      is the frame horizontal dimension in pixels

    • height: number

      is the frame vertical dimension in pixels

    Returns number

Static getFrameQuality

  • getFrameQuality(pixelData: ImageData): number
  • Get frame quality

    Parameters

    • pixelData: ImageData

      is ImageData from canvas.getContext("2d").getImageData(0, 0, canvas.width, canvas.height)

    Returns number

Static Private getIntensity

  • getIntensity(rgbaImgData: Uint8ClampedArray, row: number, col: number, width: number): number
  • Get pixel intensity

    Parameters

    • rgbaImgData: Uint8ClampedArray

      is an RGB array (3n)=>RED, (3n+1)=>GREEN, (3n+2)=>BLUE, where n is pixel index in 2D grid

    • row: number

      is an row of the pixel in the frame

    • col: number

      is na column of the pixel in the frame

    • width: number

      is the frame horizontal dimension in pixels

    Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc