ImageTemplate

class ImageTemplate(image: BufferedImage, val threshold: Double? = null) : ITemplate

Constructors

Link copied to clipboard
fun ImageTemplate(image: BufferedImage, threshold: Double? = null)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun load(): BufferedImage

This function is in charge of loading the image into memory

Properties

Link copied to clipboard
open override val source: URI

URI of the source for the image that this template is based on, since this is a URI it can represent anything from a local file to an url of image on the internet.

Link copied to clipboard
open override val threshold: Double? = null

Score threshold for the template, ranges from 0.0 to 1.0, 0.0 means absolutely nothing in common while 1.0 means 100% match.