HDR Pixel Image
46 nodes
On this page 46
Make HDR Pixel Image
FunctionOverload 1 of 7
HdrPixelImage() -> Hdr Pixel Image
HdrPixelImage HdrPixelImage()
This node carries no documentation.
Returns
| HDR Pixel Image | Hdr Pixel Image |
Remarks
Required for serialization and empty values.
Overload 2 of 7
HdrPixelImage -> Hdr Pixel Image
width: Integer
height: IntegerHdrPixelImage HdrPixelImage(int width, int height)
Creates a blank HDR image of the given size, with every pixel transparent black (all channels 0).
Parameters
| name | type | default | description |
|---|---|---|---|
| width | Integer | — | Number of columns, in pixels. |
| height | Integer | — | Number of rows, in pixels. |
Returns
| HDR Pixel Image | Hdr Pixel Image |
Overload 3 of 7
HdrPixelImage -> Hdr Pixel Image
width: Integer
height: Integer
value: Hdr Color ElementHdrPixelImage HdrPixelImage(
int width,
int height,
HdrColorElement value)Creates an HDR image of the given size with every pixel set to one color.
Parameters
| name | type | default | description |
|---|---|---|---|
| width | Integer | — | Number of columns, in pixels. |
| height | Integer | — | Number of rows, in pixels. |
| value | Hdr Color Element | — | The color every pixel starts with. |
Returns
| HDR Pixel Image | Hdr Pixel Image |
Overload 4 of 7
HdrPixelImage(pixels: Hdr Color Element Array Array) -> Hdr Pixel Image
HdrPixelImage HdrPixelImage(HdrColorElement[][] pixels)
This node carries no documentation.
Parameters
| name | type | default | description |
|---|---|---|---|
| pixels | Hdr Color Element Array Array | — | Direct reference without copy. |
Returns
| HDR Pixel Image | Hdr Pixel Image |
Overload 5 of 7
HdrPixelImage -> Hdr Pixel Image
width: Integer
height: Integer
flat: Hdr Color Element ArrayHdrPixelImage HdrPixelImage(
int width,
int height,
HdrColorElement[] flat)Creates an HDR image from a single flat run of pixels, read row by row from the top-left corner; the same as HdrPixelImage.FromFlatArray.
Parameters
| name | type | default | description |
|---|---|---|---|
| width | Integer | — | Number of columns, in pixels. |
| height | Integer | — | Number of rows, in pixels. |
| flat | Hdr Color Element Array | — | Exactly Width × Height pixels; the first Width are the top row. |
Returns
| HDR Pixel Image | Hdr Pixel Image |
Remarks
The pixels are copied, so later changes to Flat do not affect the image.
Overload 6 of 7
HdrPixelImage -> Hdr Pixel Image
image: Pixel Image
options: Pixel To Hdr Image OptionsHdrPixelImage HdrPixelImage(
PixelImage image,
PixelToHdrImageOptions options)Converts sRGB bytes into linear floating-point RGB by default.
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| options | Pixel To Hdr Image Options | — |
Returns
| HDR Pixel Image | Hdr Pixel Image |
Overload 7 of 7
HdrPixelImage -> Hdr Pixel Image
image: Pixel Image
rgbConverter: Func<Vector3, Vector3>HdrPixelImage HdrPixelImage(
PixelImage image,
Func<Vector3, Vector3> rgbConverter)Converts normalized PixelImage RGB through a caller-provided conversion function.
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| rgbConverter | Func<Vector3, Vector3> | — |
Returns
| HDR Pixel Image | Hdr Pixel Image |
Remarks
The converter completely replaces built-in transfer-function conversion. Alpha is copied separately as a normalized value.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Clone
FunctionMakes an independent copy of the image, so editing the copy leaves the original untouched.
Clone(HDR Pixel Image: Hdr Pixel Image) -> Hdr Pixel Image
HdrPixelImage Clone(HdrPixelImage Hdr Pixel Image)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Hdr Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Columns
FunctionWidth of the image in pixels, that is, the number of pixels in each row.
Columns(HDR Pixel Image: Hdr Pixel Image) -> Integer
int Columns(HdrPixelImage Hdr Pixel Image)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Item
FunctionOverload 1 of 2
Item -> Hdr Color Element
HDR Pixel Image: Hdr Pixel Image
index: IntegerHdrColorElement Item(HdrPixelImage Hdr Pixel Image, int index)
Reads or writes a pixel by its position in row-major order, counting from 0 at the top-left corner along each row in turn, so index y * Columns + x is the pixel at column x of row y.
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| index | Integer | — | The pixel's position, from 0 to HdrPixelImage.Columns × HdrPixelImage.Rows - 1. |
Returns
| result | Hdr Color Element |
Overload 2 of 2
Item -> Hdr Color Element
HDR Pixel Image: Hdr Pixel Image
x: Integer
y: IntegerHdrColorElement Item(
HdrPixelImage Hdr Pixel Image,
int x,
int y)Reads or writes the pixel at a column and row, the same as HdrPixelImage.GetHdrColor and HdrPixelImage.SetHdrColor.
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| x | Integer | — | Column, counted from 0 at the left edge. |
| y | Integer | — | Row, counted from 0 at the top edge. |
Returns
| result | Hdr Color Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Pixels
FunctionThis node carries no documentation.
Pixels(HDR Pixel Image: Hdr Pixel Image) -> Hdr Color Element Array Array
HdrColorElement[][] Pixels(HdrPixelImage Hdr Pixel Image)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Hdr Color Element Array Array |
Remarks
Row-major data in the form Pixels[y][x].
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Raw
FunctionThe whole image as raw bytes, four little-endian 32-bit floats per pixel (red, green, blue, alpha), row by row from the top-left corner; see HdrPixelImage.ToTightlyPackedFloat32LittleEndianBytes.
Raw(HDR Pixel Image: Hdr Pixel Image) -> Byte Array
byte[] Raw(HdrPixelImage Hdr Pixel Image)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Byte Array |
Remarks
Every read builds a new copy of the pixel data, so read it once and keep the result rather than reading it inside a loop.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Rows
FunctionHeight of the image in pixels, that is, the number of rows.
Rows(HDR Pixel Image: Hdr Pixel Image) -> Integer
int Rows(HdrPixelImage Hdr Pixel Image)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Get Color
FunctionReturns the fixed default tone-mapped preview color.
GetColor -> Color
HDR Pixel Image: Hdr Pixel Image
x: Integer
y: IntegerColorElement GetColor(
HdrPixelImage Hdr Pixel Image,
int x,
int y)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| x | Integer | — | |
| y | Integer | — |
Returns
| result | Color |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Get Float Value
FunctionReturns fixed-default tone-mapped linear luminance.
GetFloatValue -> Low Accuracy Number
HDR Pixel Image: Hdr Pixel Image
x: Integer
y: Integerfloat GetFloatValue(HdrPixelImage Hdr Pixel Image, int x, int y)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| x | Integer | — | |
| y | Integer | — |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Get Gray Byte
FunctionReturns fixed-default tone-mapped linear luminance as an 8-bit value.
GetGrayByte -> Byte
HDR Pixel Image: Hdr Pixel Image
x: Integer
y: Integerbyte GetGrayByte(HdrPixelImage Hdr Pixel Image, int x, int y)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| x | Integer | — | |
| y | Integer | — |
Returns
| result | Byte |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Get Hdr Color
FunctionThe full-precision HDR color of one pixel, exactly as stored.
GetHdrColor -> Hdr Color Element
HDR Pixel Image: Hdr Pixel Image
x: Integer
y: IntegerHdrColorElement GetHdrColor(
HdrPixelImage Hdr Pixel Image,
int x,
int y)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| x | Integer | — | Column, counted from 0 at the left edge. |
| y | Integer | — | Row, counted from 0 at the top edge. |
Returns
| result | Hdr Color Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Get Hdr Luminance
FunctionReturns luminance directly from stored RGB values without transfer conversion.
GetHdrLuminance -> Low Accuracy Number
HDR Pixel Image: Hdr Pixel Image
x: Integer
y: Integerfloat GetHdrLuminance(
HdrPixelImage Hdr Pixel Image,
int x,
int y)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| x | Integer | — | |
| y | Integer | — |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Get Summary
FunctionA one-line description of the image: its size, the lowest and highest value of each channel, and the range of its Rec. 709 luminance.
GetSummary(HDR Pixel Image: Hdr Pixel Image) -> Text
string GetSummary(HdrPixelImage Hdr Pixel Image)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Text |
Remarks
NaN samples are skipped when finding each channel's range and non-finite luminance is skipped for the luminance range, so a channel with nothing else to report shows NaN. An empty image is reported as such.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Histogram
FunctionReturns a normalized histogram of stored linear luminance.
Bins span the actual finite luminance range of the image.
The returned values sum to 1 when at least one finite sample exists.
Histogram -> Number Array
HDR Pixel Image: Hdr Pixel Image
bars: Integerdouble[] Histogram(HdrPixelImage Hdr Pixel Image, int bars)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| bars | Integer | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Is Within Display Range
FunctionWhether every RGB sample, scaled by Exposure Multiplier, already lies
at or below 1.0 — so there is no range for a tone-mapping operator to compress.
IsWithinDisplayRange -> Truth
HDR Pixel Image: Hdr Pixel Image
exposureMultiplier: Low Accuracy Numberbool IsWithinDisplayRange(
HdrPixelImage Hdr Pixel Image,
float exposureMultiplier = 1f)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| exposureMultiplier | Low Accuracy Number | 1 | The linear exposure factor the conversion will apply. |
Returns
| result | Truth |
Remarks
NaN counts as in range because every preview path maps it to zero rather than tone
mapping it; positive infinity counts as out of range because it is the extreme case of
the thing tone mapping exists for. Alpha is not considered: it is never tone mapped.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Max
FunctionThis node carries no documentation.
Max -> Number
HDR Pixel Image: Hdr Pixel Image
channel: Integerdouble Max(HdrPixelImage Hdr Pixel Image, int channel)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| channel | Integer | — | 0-3 |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Min
FunctionThis node carries no documentation.
Min -> Number
HDR Pixel Image: Hdr Pixel Image
channel: Integerdouble Min(HdrPixelImage Hdr Pixel Image, int channel)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| channel | Integer | — | 0-3 |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Save As Portable Float Map
FunctionWrites the image as Portable FloatMap (.pfm).
SaveAsPortableFloatMap
HDR Pixel Image: Hdr Pixel Image
path: Text
options: Portable Float Map Image Writer Optionsvoid SaveAsPortableFloatMap(
HdrPixelImage Hdr Pixel Image,
string path,
PortableFloatMapImageWriterOptions options)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| path | Text | — | |
| options | Portable Float Map Image Writer Options | — |
Remarks
Unlike Radiance RGBE this keeps full 32-bit float precision per channel and can represent
negative values, at the cost of a much larger file.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Save As Radiance Hdr
FunctionWrites the image as a Radiance RGBE (.hdr) file, the common format for HDR environment maps; alpha is not stored.
SaveAsRadianceHdr
HDR Pixel Image: Hdr Pixel Image
path: Text
options: Radiance Hdr Image Writer Optionsvoid SaveAsRadianceHdr(
HdrPixelImage Hdr Pixel Image,
string path,
RadianceHdrImageWriterOptions options)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| path | Text | — | The file to create or overwrite. |
| options | Radiance Hdr Image Writer Options | — | Encoder settings; null uses the defaults. |
Remarks
RGBE shares one exponent between the three channels, so it is compact but less precise than HdrPixelImage.SaveAsPortableFloatMap, and it cannot hold negative values.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Save As Text
FunctionThe image as Base64 text, encoding the same bytes as HdrPixelImage.SerializeIntoBytes, for storing an image inside a text document.
SaveAsText(HDR Pixel Image: Hdr Pixel Image) -> Text
string SaveAsText(HdrPixelImage Hdr Pixel Image)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Serialize Into Bytes
FunctionSerializes the image into Divooka's own binary form, as written by HdrPixelImage.WriteToStream, preserving every float exactly.
SerializeIntoBytes(HDR Pixel Image: Hdr Pixel Image) -> Byte Array
byte[] SerializeIntoBytes(HdrPixelImage Hdr Pixel Image)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Byte Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Set Hdr Color
FunctionReplaces the HDR color of one pixel, changing the image in place.
SetHdrColor
HDR Pixel Image: Hdr Pixel Image
x: Integer
y: Integer
color: Hdr Color Elementvoid SetHdrColor(
HdrPixelImage Hdr Pixel Image,
int x,
int y,
HdrColorElement color)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| x | Integer | — | Column, counted from 0 at the left edge. |
| y | Integer | — | Row, counted from 0 at the top edge. |
| color | Hdr Color Element | — | The new color, stored exactly as given. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
To Flat Array
FunctionCopies all pixels into a single array, row by row from the top-left corner, so pixel (x, y) is at index y * Columns + x.
ToFlatArray(HDR Pixel Image: Hdr Pixel Image) -> Hdr Color Element Array
HdrColorElement[] ToFlatArray(HdrPixelImage Hdr Pixel Image)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Hdr Color Element Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
To Pixel Image
FunctionOverload 1 of 3
ToPixelImage(HDR Pixel Image: Hdr Pixel Image) -> Pixel Image
PixelImage ToPixelImage(HdrPixelImage Hdr Pixel Image)
Converts the image to an 8-bit sRGB image for display, choosing the exposure automatically from the image's average brightness and compressing highlights with a luminance-based curve that keeps colors from washing out to white.
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Pixel Image |
Remarks
Exposure places the image's log-average luminance at middle gray (0.18), so a few very bright pixels such as the sun barely affect it. Negative values become 0 and alpha is clamped to 0-1. Use HdrPixelImage.ToPixelImage for a fixed exposure and a chosen tone-mapping operator.
Overload 2 of 3
ToPixelImage -> Pixel Image
HDR Pixel Image: Hdr Pixel Image
options: Hdr To Pixel Image OptionsPixelImage ToPixelImage(
HdrPixelImage Hdr Pixel Image,
HdrToPixelImageOptions options)Converts the image to an 8-bit image with explicit control over exposure, tone mapping, transfer functions and alpha.
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| options | Hdr To Pixel Image Options | — | The conversion settings; null uses HdrToPixelImageOptions.Default (ACES tone mapping, linear to sRGB, no exposure change). |
Returns
| result | Pixel Image |
Remarks
Each pixel goes through: source transfer decode, exposure (in stops), optional clamping of negatives, the tone-mapping operator, clamping to 0-1, destination transfer encode and rounding to a byte. NaN and negative infinity become 0 and positive infinity becomes 1.
Overload 3 of 3
ToPixelImage -> Pixel Image
HDR Pixel Image: Hdr Pixel Image
transferFunction: Func<Vector3, Color>PixelImage ToPixelImage(
HdrPixelImage Hdr Pixel Image,
Func<Vector3, ColorElement> transferFunction)Converts the image to an 8-bit image using your own conversion for every pixel.
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| transferFunction | Func<Vector3, Color> | — | Turns one pixel's stored red, green and blue into the 8-bit color to write. |
Returns
| result | Pixel Image |
Remarks
The function receives only red, green and blue (in X, Y and Z, as stored), so the HDR alpha is discarded; the alpha of each returned color is used as is.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
To Portable Float Map Bytes
FunctionEncodes the image as a Portable FloatMap (.pfm) file in memory, producing the same bytes HdrPixelImage.SaveAsPortableFloatMap writes to disk.
ToPortableFloatMapBytes -> Byte Array
HDR Pixel Image: Hdr Pixel Image
options: Portable Float Map Image Writer Optionsbyte[] ToPortableFloatMapBytes(
HdrPixelImage Hdr Pixel Image,
PortableFloatMapImageWriterOptions options)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| options | Portable Float Map Image Writer Options | — | Encoder settings; null uses the defaults. |
Returns
| result | Byte Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
To Radiance Hdr Bytes
FunctionEncodes the image as a Radiance RGBE (.hdr) file in memory, producing the same bytes HdrPixelImage.SaveAsRadianceHdr writes to disk.
ToRadianceHdrBytes -> Byte Array
HDR Pixel Image: Hdr Pixel Image
options: Radiance Hdr Image Writer Optionsbyte[] ToRadianceHdrBytes(
HdrPixelImage Hdr Pixel Image,
RadianceHdrImageWriterOptions options)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| options | Radiance Hdr Image Writer Options | — | Encoder settings; null uses the defaults. |
Returns
| result | Byte Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
To Tightly Packed Float32little Endian Bytes
FunctionThe whole image as raw bytes: four little-endian 32-bit floats per pixel (red, green, blue, alpha), row by row from the top-left corner with no header or padding.
ToTightlyPackedFloat32LittleEndianBytes(HDR Pixel Image: Hdr Pixel Image) -> Byte Array
byte[] ToTightlyPackedFloat32LittleEndianBytes(HdrPixelImage Hdr Pixel Image)
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — |
Returns
| result | Byte Array |
Remarks
The values are written exactly, NaN and infinity included; HdrPixelImage.FromTightlyPackedFloat32LittleEndianBytes reads them back.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Transform Hdr Data
FunctionOverload 1 of 2
TransformHdrData
HDR Pixel Image: Hdr Pixel Image
transformer: Func<Hdr Color Element, Hdr Color Element>void TransformHdrData(
HdrPixelImage Hdr Pixel Image,
Func<HdrColorElement, HdrColorElement> transformer)Applies an element transform atomically using a deep copy.
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| transformer | Func<Hdr Color Element, Hdr Color Element> | — |
Overload 2 of 2
TransformHdrData
HDR Pixel Image: Hdr Pixel Image
transformer: Func<Integer, Integer, Hdr Color Element, Hdr Color Element>void TransformHdrData(
HdrPixelImage Hdr Pixel Image,
Func<int, int, HdrColorElement, HdrColorElement> transformer)Applies a coordinate-aware element transform atomically using a deep copy.
Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| transformer | Func<Integer, Integer, Hdr Color Element, Hdr Color Element> | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Update Color Data
FunctionPerforms a deliberately lossy sRGB-preview update and converts the result back into linear HDR data.
UpdateColorData
HDR Pixel Image: Hdr Pixel Image
updater: Func<Color Array Array, Color Array Array>void UpdateColorData(
HdrPixelImage Hdr Pixel Image,
Func<ColorElement[][], ColorElement[][]> updater)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| updater | Func<Color Array Array, Color Array Array> | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Update Hdr Data
FunctionApplies a shape-preserving or shape-changing HDR update from a deep copy.
UpdateHdrData
HDR Pixel Image: Hdr Pixel Image
updater: Func<Hdr Color Element Array Array, Hdr Color Element Array Array>void UpdateHdrData(
HdrPixelImage Hdr Pixel Image,
Func<HdrColorElement[][], HdrColorElement[][]> updater)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| updater | Func<Hdr Color Element Array Array, Hdr Color Element Array Array> | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Write Portable Float Map
FunctionEncodes the image as a Portable FloatMap (.pfm) file into a stream, starting at its current position; the stream is left open.
WritePortableFloatMap
HDR Pixel Image: Hdr Pixel Image
stream: Stream
options: Portable Float Map Image Writer Optionsvoid WritePortableFloatMap(
HdrPixelImage Hdr Pixel Image,
Stream stream,
PortableFloatMapImageWriterOptions options)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| stream | Stream | — | A writable stream to receive the file. |
| options | Portable Float Map Image Writer Options | — | Encoder settings; null uses the defaults. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Write Radiance Hdr
FunctionEncodes the image as a Radiance RGBE (.hdr) file into a stream, starting at its current position; the stream is left open.
WriteRadianceHdr
HDR Pixel Image: Hdr Pixel Image
stream: Stream
options: Radiance Hdr Image Writer Optionsvoid WriteRadianceHdr(
HdrPixelImage Hdr Pixel Image,
Stream stream,
RadianceHdrImageWriterOptions options)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| stream | Stream | — | A writable stream to receive the file. |
| options | Radiance Hdr Image Writer Options | — | Encoder settings; null uses the defaults. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Write Tightly Packed Float32little Endian
FunctionWrites tightly packed little-endian float RGBA data without a header.
WriteTightlyPackedFloat32LittleEndian -> Large Integer
HDR Pixel Image: Hdr Pixel Image
stream: Streamlong WriteTightlyPackedFloat32LittleEndian(
HdrPixelImage Hdr Pixel Image,
Stream stream)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| stream | Stream | — |
Returns
| result | Large Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Write To Stream
FunctionThe binary format uses an eight-byte HDR-specific magic, version, dimensions, Int64 payload length, then row-wise little-endian IEEE-754 RGBA floats.
WriteToStream -> Large Integer
HDR Pixel Image: Hdr Pixel Image
writer: BinaryWriterlong WriteToStream(
HdrPixelImage Hdr Pixel Image,
BinaryWriter writer)Parameters
| name | type | default | description |
|---|---|---|---|
| HDR Pixel Image | Hdr Pixel Image | — | |
| writer | BinaryWriter | — |
Returns
| result | Large Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Allocate Pixels
FunctionAllocates a new [row][column] HDR pixel grid of the given size, optionally filled with one color.
AllocatePixels -> Hdr Color Element Array Array
width: Integer
height: Integer
value: Optional Hdr Color ElementHdrColorElement[][] AllocatePixels(
int width,
int height,
HdrColorElement? value)Parameters
| name | type | default | description |
|---|---|---|---|
| width | Integer | — | Number of pixels in each row. |
| height | Integer | — | Number of rows. |
| value | Optional Hdr Color Element | — | The fill color; null leaves every pixel transparent black (all channels 0). |
Returns
| result | Hdr Color Element Array Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
From Flat Array
FunctionCreates an HDR image from a single array of pixels laid out row by row from the top-left corner, the inverse of HdrPixelImage.ToFlatArray.
FromFlatArray -> Hdr Pixel Image
width: Integer
height: Integer
flat: Hdr Color Element ArrayHdrPixelImage FromFlatArray(
int width,
int height,
HdrColorElement[] flat)Parameters
| name | type | default | description |
|---|---|---|---|
| width | Integer | — | Number of columns, in pixels. |
| height | Integer | — | Number of rows, in pixels. |
| flat | Hdr Color Element Array | — | Exactly Width × Height pixels; the first Width are the top row. |
Returns
| result | Hdr Pixel Image |
Remarks
The pixels are copied, so later changes to Flat do not affect the image.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
From Pixel Image
FunctionOverload 1 of 2
FromPixelImage -> Hdr Pixel Image
image: Pixel Image
options: Pixel To Hdr Image OptionsHdrPixelImage FromPixelImage(
PixelImage image,
PixelToHdrImageOptions options)Converts an 8-bit image to HDR, turning each byte into a 0-1 value and, by default, decoding the sRGB curve so the result is in linear light.
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | The 8-bit image to convert. |
| options | Pixel To Hdr Image Options | — | The source and destination transfer functions; null uses PixelToHdrImageOptions.Default (sRGB to linear). |
Returns
| result | Hdr Pixel Image |
Remarks
Alpha is copied as a 0-1 value without conversion. The result is a new image; the source is not changed.
Overload 2 of 2
FromPixelImage -> Hdr Pixel Image
image: Pixel Image
rgbConverter: Func<Vector3, Vector3>HdrPixelImage FromPixelImage(
PixelImage image,
Func<Vector3, Vector3> rgbConverter)Converts normalized PixelImage RGB through a caller-provided conversion function.
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| rgbConverter | Func<Vector3, Vector3> | — |
Returns
| result | Hdr Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
From Tightly Packed Float32little Endian Bytes
FunctionCreates an HDR image from raw bytes holding four little-endian 32-bit floats per pixel (red, green, blue, alpha), row by row from the top-left corner with no header or padding.
FromTightlyPackedFloat32LittleEndianBytes -> Hdr Pixel Image
width: Integer
height: Integer
rawBytes: Byte ArrayHdrPixelImage FromTightlyPackedFloat32LittleEndianBytes(
int width,
int height,
byte[] rawBytes)Parameters
| name | type | default | description |
|---|---|---|---|
| width | Integer | — | Number of columns, in pixels. |
| height | Integer | — | Number of rows, in pixels. |
| rawBytes | Byte Array | — | Exactly Width × Height × 16 bytes. |
Returns
| result | Hdr Pixel Image |
Remarks
The inverse of HdrPixelImage.ToTightlyPackedFloat32LittleEndianBytes. The values are copied exactly, NaN and infinity included.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Initialize Black Image
FunctionCreates an HDR image of the given size filled with opaque black (red, green and blue 0, alpha 1).
InitializeBlackImage -> Hdr Pixel Image
width: Integer
height: IntegerHdrPixelImage InitializeBlackImage(int width, int height)
Parameters
| name | type | default | description |
|---|---|---|---|
| width | Integer | — | Number of columns, in pixels. |
| height | Integer | — | Number of rows, in pixels. |
Returns
| result | Hdr Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Initialize From Bytes
FunctionRebuilds an image from bytes produced by HdrPixelImage.SerializeIntoBytes.
InitializeFromBytes(data: Byte Array) -> Hdr Pixel Image
HdrPixelImage InitializeFromBytes(byte[] data)
Parameters
| name | type | default | description |
|---|---|---|---|
| data | Byte Array | — | The serialized image, with nothing after it. |
Returns
| result | Hdr Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Initialize Image
FunctionCreates an HDR image of the given size with every pixel set to one color.
InitializeImage -> Hdr Pixel Image
width: Integer
height: Integer
value: Hdr Color ElementHdrPixelImage InitializeImage(
int width,
int height,
HdrColorElement value)Parameters
| name | type | default | description |
|---|---|---|---|
| width | Integer | — | Number of columns, in pixels. |
| height | Integer | — | Number of rows, in pixels. |
| value | Hdr Color Element | — | The color every pixel starts with. |
Returns
| result | Hdr Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Load From File
FunctionOverload 1 of 3
LoadFromFile(path: Text) -> Hdr Pixel Image
HdrPixelImage LoadFromFile(string path)
Loads any format accepted by StbImageSharp's floating-point decoder.
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — |
Returns
| result | Hdr Pixel Image |
Remarks
Values returned by StbImageSharp are stored without further conversion.
This should support Radiance HDR (.pic, .hdr) file format.
Overload 2 of 3
LoadFromFile -> Hdr Pixel Image
path: Text
sourceTransfer: Color Transfer Function
destinationTransfer: Color Transfer FunctionHdrPixelImage LoadFromFile(
string path,
ColorTransferFunction sourceTransfer,
ColorTransferFunction destinationTransfer)Loads an image and converts its decoded RGB values between built-in transfer functions.
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — | |
| sourceTransfer | Color Transfer Function | — | |
| destinationTransfer | Color Transfer Function | — |
Returns
| result | Hdr Pixel Image |
Overload 3 of 3
LoadFromFile -> Hdr Pixel Image
path: Text
rgbConverter: Func<Vector3, Vector3>HdrPixelImage LoadFromFile(
string path,
Func<Vector3, Vector3> rgbConverter)Loads an image and applies a caller-provided conversion to decoded RGB values.
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — | |
| rgbConverter | Func<Vector3, Vector3> | — |
Returns
| result | Hdr Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Load From File Buffer
FunctionOverload 1 of 3
LoadFromFileBuffer(fileData: Byte Array) -> Hdr Pixel Image
HdrPixelImage LoadFromFileBuffer(byte[] fileData)
Decodes an image file held in memory into HDR values, in any format StbImageSharp's floating-point decoder accepts, such as Radiance .hdr.
Parameters
| name | type | default | description |
|---|---|---|---|
| fileData | Byte Array | — | The complete file contents. |
Returns
| result | Hdr Pixel Image |
Remarks
Values returned by the decoder are stored without further conversion.
Overload 2 of 3
LoadFromFileBuffer -> Hdr Pixel Image
fileData: Byte Array
sourceTransfer: Color Transfer Function
destinationTransfer: Color Transfer FunctionHdrPixelImage LoadFromFileBuffer(
byte[] fileData,
ColorTransferFunction sourceTransfer,
ColorTransferFunction destinationTransfer)Decodes an image file held in memory into HDR values, then converts the decoded red, green and blue from one transfer function to another.
Parameters
| name | type | default | description |
|---|---|---|---|
| fileData | Byte Array | — | The complete file contents. |
| sourceTransfer | Color Transfer Function | — | The transfer function the decoded values are in. |
| destinationTransfer | Color Transfer Function | — | The transfer function to store them in. |
Returns
| result | Hdr Pixel Image |
Remarks
Alpha is stored as decoded. When the two transfer functions are the same, the values are left unchanged.
Overload 3 of 3
LoadFromFileBuffer -> Hdr Pixel Image
fileData: Byte Array
rgbConverter: Func<Vector3, Vector3>HdrPixelImage LoadFromFileBuffer(
byte[] fileData,
Func<Vector3, Vector3> rgbConverter)Decodes an image file held in memory into HDR values, passing each pixel's decoded red, green and blue through a conversion of your choice.
Parameters
| name | type | default | description |
|---|---|---|---|
| fileData | Byte Array | — | The complete file contents. |
| rgbConverter | Func<Vector3, Vector3> | — | Receives red, green and blue in X, Y and Z and returns the values to store; null stores them unchanged. |
Returns
| result | Hdr Pixel Image |
Remarks
Alpha is stored as decoded and is not passed to the converter.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Load From Stream
FunctionOverload 1 of 3
LoadFromStream(stream: Stream) -> Hdr Pixel Image
HdrPixelImage LoadFromStream(Stream stream)
Decodes an image from a stream into HDR values, in any format StbImageSharp's floating-point decoder accepts, such as Radiance .hdr.
Parameters
| name | type | default | description |
|---|---|---|---|
| stream | Stream | — | A readable stream holding the image file. |
Returns
| result | Hdr Pixel Image |
Remarks
Values returned by the decoder are stored without further conversion. The stream is read from its current position and is not closed.
Overload 2 of 3
LoadFromStream -> Hdr Pixel Image
stream: Stream
sourceTransfer: Color Transfer Function
destinationTransfer: Color Transfer FunctionHdrPixelImage LoadFromStream(
Stream stream,
ColorTransferFunction sourceTransfer,
ColorTransferFunction destinationTransfer)Decodes an image from a stream into HDR values, then converts the decoded red, green and blue from one transfer function to another.
Parameters
| name | type | default | description |
|---|---|---|---|
| stream | Stream | — | A readable stream holding the image file. |
| sourceTransfer | Color Transfer Function | — | The transfer function the decoded values are in. |
| destinationTransfer | Color Transfer Function | — | The transfer function to store them in. |
Returns
| result | Hdr Pixel Image |
Remarks
Alpha is stored as decoded. When the two transfer functions are the same, the values are left unchanged. The stream is not closed.
Overload 3 of 3
LoadFromStream -> Hdr Pixel Image
stream: Stream
rgbConverter: Func<Vector3, Vector3>HdrPixelImage LoadFromStream(
Stream stream,
Func<Vector3, Vector3> rgbConverter)Decodes an image from a stream into HDR values, passing each pixel's decoded red, green and blue through a conversion of your choice.
Parameters
| name | type | default | description |
|---|---|---|---|
| stream | Stream | — | A readable stream holding the image file. |
| rgbConverter | Func<Vector3, Vector3> | — | Receives red, green and blue in X, Y and Z and returns the values to store; null stores them unchanged. |
Returns
| result | Hdr Pixel Image |
Remarks
Alpha is stored as decoded and is not passed to the converter. The stream is read from its current position and is not closed.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Load From Text
FunctionRebuilds an image from Base64 text produced by HdrPixelImage.SaveAsText.
LoadFromText(text: Text) -> Hdr Pixel Image
HdrPixelImage LoadFromText(string text)
Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — | The Base64 text. |
Returns
| result | Hdr Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing
Read From Stream
FunctionReads an image written by HdrPixelImage.WriteToStream, leaving the reader just past it.
ReadFromStream(reader: BinaryReader) -> (result: Large Integer, value: Hdr Pixel Image)
long ReadFromStream(
BinaryReader reader,
out HdrPixelImage value)Parameters
| name | type | default | description |
|---|---|---|---|
| reader | BinaryReader | — | The reader positioned at the image. |
Returns
| result | Large Integer |
| value | Hdr Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HDR Pixel Image
- Package
- Image Processing