Interface: AnalyzedImage
Defined in: media/types.ts:20
an object that is stored in memory when an image is loaded
Param
the file name of the uploaded file
Param
the raw data of the image
Param
an array of unique hex values found in this image
Param
an array that matches each index in the color array to a color index that it should be grouped with
Param
the HTML image object to write the data into
Param
an 2D array associating every pixel in the image with the id of the associated color in the colors array
Param
Param
Param
Param
a text warning is added if the image file violates rules
Properties
colors
colors:
Color[]
Defined in: media/types.ts:23
colors_mapping
colors_mapping:
object[]
Defined in: media/types.ts:24
from
from:
number
to
to:
number
data
data:
ImageData
Defined in: media/types.ts:22
height
height:
number
Defined in: media/types.ts:29
image
image:
HTMLImageElement
Defined in: media/types.ts:26
image_map
image_map:
number[][]
Defined in: media/types.ts:27
name
name:
string
Defined in: media/types.ts:21
proximity_map
proximity_map:
object[]
Defined in: media/types.ts:25
a
a:
number
b
b:
number
dist
dist:
number
type
type:
string
Defined in: media/types.ts:30
warning
warning:
string
Defined in: media/types.ts:31
width
width:
number
Defined in: media/types.ts:28