ImageLoader.loadAsRaw

Load image as raw. By default, load the file as linear RGB 48-bit

When an image which has another file type, assertion error is thrown.

class ImageLoader
static
loadAsRaw
(
string path
,
bool loadNoPixels = false
,
bool preview = false
,
bool display = false
,
bool halfSize = false
,
bool unprocessed = false
)

Parameters

path string

image file path

loadNoPixels bool

When this flag is supported by a plugin, load only header data and possibly metadata (including embedded thumbnail). When the flag is not supported, pixels are loaded.

preview bool

Try to load the embedded JPEG preview with included Exif data or default to RGB 24-bit

display bool

Load the file as RGB 24-bit

halfSize bool

Output a half-size color image

unprocessed bool

Output a FIT_UINT16 raw Bayer image

Return Value

Type: Image

loaded raw image

Meta