Aardvark.Base


ImageTensors

Static members

Static memberDescription
AsMatrix(volume)
Signature: volume:Volume<'T> -> Matrix<'T>
Type parameters: 'T

Reinterpret a volume with Size.Z == 1 as matrix. The new matrix starts at [0, 0].

AsMatrixWindow(volume)
Signature: volume:Volume<'T> -> Matrix<'T>
Type parameters: 'T

Reinterpret a volume with Size.Z == 1 as matrix. Retain the coordinates of the volume.

AsTensor4(volume)
Signature: volume:Volume<'T> -> Tensor4<'T>
Type parameters: 'T

Reinterpret a volume as a tensor4 with Size.W == 1. The new tensor4 starts at [0, 0, 0, 0].

AsTensor4Window(volume)
Signature: volume:Volume<'T> -> Tensor4<'T>
Type parameters: 'T

Reinterpret a volume as a tensor4 with Size.W == 1. Retain coordinates of the volume.

AsVolume(matrix)
Signature: matrix:Matrix<'T> -> Volume<'T>
Type parameters: 'T

Reinterpret a matrix as a volume with Size.Z == 1. The new volume starts at [0, 0, 0].

AsVolume(tensor4)
Signature: tensor4:Tensor4<'T> -> Volume<'T>
Type parameters: 'T

Reinterpret a tensor4 with Size.W == 1 as volume. The new volume starts at [0, 0, 0].

AsVolumeWindow(matrix)
Signature: matrix:Matrix<'T> -> Volume<'T>
Type parameters: 'T

Reinterpret a matrix as a volume with Size.Z == 1. Retain coordinates of the matrix.

AsVolumeWindow(tensor4)
Signature: tensor4:Tensor4<'T> -> Volume<'T>
Type parameters: 'T

Reinterpret a tensor4 with Size.W == 1 as volume. Retain the coordinates of the tensor4.

CopyImage(volume)
Signature: volume:Volume<'T> -> Volume<'T>
Type parameters: 'T

Copy this volume to image memory layout. Coordinates of the result start at [0, 0, 0].

CopyImage(volume, fun)
Signature: (volume:Volume<'T> * fun:Func<'T,'T1>) -> Volume<'T1>
Type parameters: 'T, 'T1

Copy this volume to image memory layout, while piping all elements through the supplied function. Coordinates of the result start at [0, 0, 0].

CopyImage(tensor4)
Signature: tensor4:Tensor4<'T> -> Tensor4<'T>
Type parameters: 'T

Copy this tensor4 to image memory layout. Coordinates of the result start at [0, 0, 0, 0].

CopyImage(tensor4, fun)
Signature: (tensor4:Tensor4<'T> * fun:Func<'T,'T1>) -> Tensor4<'T1>
Type parameters: 'T, 'T1

Copy this tensor4 to image memory layout, while piping all elements through the supplied function. Coordinates of the result start at [0, 0, 0, 0].

CopyImageWindow(volume)
Signature: volume:Volume<'T> -> Volume<'T>
Type parameters: 'T

Copy this volume to image memory layout. Retains the coordinates of the original image.

CopyImageWindow(volume, fun)
Signature: (volume:Volume<'T> * fun:Func<'T,'T1>) -> Volume<'T1>
Type parameters: 'T, 'T1

Copy this volume to image memory layout, while piping all elements through the supplied function. Retains the coordinates of the original image.

CopyImageWindow(tensor4)
Signature: tensor4:Tensor4<'T> -> Tensor4<'T>
Type parameters: 'T

Copy this tensor4 to image memory layout. Retains the coordinates of the original image.

CopyImageWindow(tensor4, fun)
Signature: (tensor4:Tensor4<'T> * fun:Func<'T,'T1>) -> Tensor4<'T1>
Type parameters: 'T, 'T1

Copy this tensor4 to image memory layout, while piping all elements through the supplied function. Retains the coordinates of the original image.

CopyToImage(volume)
Signature: volume:Volume<'T> -> Volume<'T>
Type parameters: 'T

Copy this volume to image memory layout. Coordinates of the result start at [0, 0, 0].

CopyToImage(tensor4)
Signature: tensor4:Tensor4<'T> -> Tensor4<'T>
Type parameters: 'T

Copy this tensor4 to image memory layout. Coordinates of the result start at [0, 0, 0, 0].

CopyToImageWindow(volume)
Signature: volume:Volume<'T> -> Volume<'T>
Type parameters: 'T

Copy this volume to image memory layout. Retains the coordinates of the original image.

CopyToImageWindow(tensor4)
Signature: tensor4:Tensor4<'T> -> Tensor4<'T>
Type parameters: 'T

Copy this tensor4 to image memory layout. Retains the coordinates of the original image.

CreateImageMatrix(size)
Signature: size:V2l -> Matrix<'T>
Type parameters: 'T

Create a valid image matrix, with stride appropriate for the given size. Note that this is just the same as a normal matrix.

CreateImageTensor4(size)
Signature: size:V4l -> Tensor4<'T>
Type parameters: 'T

Create a valid image tensor4, with stride appropriate for the given size.

CreateImageVolume(size)
Signature: size:V3l -> Volume<'T>
Type parameters: 'T

Create a valid image volume, with stride appropriate for the given size. For image volumes DZ == 1.

CreateImageVolume(data, size)
Signature: (data:'T [] * size:V3l) -> Volume<'T>
Type parameters: 'T
GetMatrix(volume, intent)
Signature: (volume:Volume<'Td> * intent:Symbol) -> Matrix<'Td,'Tv>
Type parameters: 'Td, 'Tv

Reinterpret an image volume as a matrix of colors with supplied color intent.

GetVolume(tensor4, intent)
Signature: (tensor4:Tensor4<'Td> * intent:Symbol) -> Volume<'Td,'Tv>
Type parameters: 'Td, 'Tv

Reinterpret an image tensor as a volume of colors with supplied color intent.

HasImageLayout(matrix)
Signature: matrix:Matrix<'T> -> bool
Type parameters: 'T
HasImageLayout(volume)
Signature: volume:Volume<'T> -> bool
Type parameters: 'T
HasImageLayout(tensor4)
Signature: tensor4:Tensor4<'T> -> bool
Type parameters: 'T
HasImageWindowLayout(matrix)
Signature: matrix:Matrix<'T> -> bool
Type parameters: 'T
HasImageWindowLayout(vol)
Signature: vol:Volume<'T> -> bool
Type parameters: 'T
HasImageWindowLayout(tensor4)
Signature: tensor4:Tensor4<'T> -> bool
Type parameters: 'T
ImageCol(vol, x)
Signature: (vol:Volume<'T> * x:int64) -> Volume<'T>
Type parameters: 'T

Returns a single image column as an image volume with coordinates starting at 0, 0, 0.

ImageRow(vol, y)
Signature: (vol:Volume<'T> * y:int64) -> Volume<'T>
Type parameters: 'T

Returns a single image row as an image volume with coordinates starting at 0, 0, 0.

ImageWindowCol(vol, x)
Signature: (vol:Volume<'T> * x:int64) -> Volume<'T>
Type parameters: 'T

Returns a single image column as an image volume.

ImageWindowRow(vol, y)
Signature: (vol:Volume<'T> * y:int64) -> Volume<'T>
Type parameters: 'T

Returns a single image row as an image volume.

MapToImage(volume, fun)
Signature: (volume:Volume<'T> * fun:Func<'T,'T1>) -> Volume<'T1>
Type parameters: 'T, 'T1

Copy this volume to image memory layout, while piping all elements through the supplied function. Coordinates of the result start at [0, 0, 0].

MapToImage(tensor4, fun)
Signature: (tensor4:Tensor4<'T> * fun:Func<'T,'T1>) -> Tensor4<'T1>
Type parameters: 'T, 'T1

Copy this tensor4 to image memory layout, while piping all elements through the supplied function. Coordinates of the result start at [0, 0, 0, 0].

MapToImageWindow(volume, fun)
Signature: (volume:Volume<'T> * fun:Func<'T,'T1>) -> Volume<'T1>
Type parameters: 'T, 'T1

Copy this volume to image memory layout, while piping all elements through the supplied function. Retains the coordinates of the original image.

MapToImageWindow(tensor4, fun)
Signature: (tensor4:Tensor4<'T> * fun:Func<'T,'T1>) -> Tensor4<'T1>
Type parameters: 'T, 'T1

Copy this tensor4 to image memory layout, while piping all elements through the supplied function. Retains the coordinates of the original image.

SubImage(vol, begin, size)
Signature: (vol:Volume<'T> * begin:V2l * size:V2l) -> Volume<'T>
Type parameters: 'T

Return a sub image volume beginning at the supplied pixel coordinate with the supplied size in pixels. The coordinates of the sub image volume start at 0, 0, 0.

SubImage(...)
Signature: (vol:Volume<'T> * beginX:int64 * beginY:int64 * sizeX:int64 * sizeY:int64) -> Volume<'T>
Type parameters: 'T

Return a sub image volume beginning at the supplied pixel coordinate with the supplied size in pixels. The coordinates of the sub image volume start at 0, 0, 0.

SubImageAtZ(tensor4, z)
Signature: (tensor4:Tensor4<'T> * z:int64) -> Volume<'T>
Type parameters: 'T
SubImageWindow(vol, begin, size)
Signature: (vol:Volume<'T> * begin:V2l * size:V2l) -> Volume<'T>
Type parameters: 'T

Return a sub image volume beginning at the supplied pixel coordinate with the supplied size in pixels. The sub image retains the coordinates of the parent image.

SubImageWindow(...)
Signature: (vol:Volume<'T> * beginX:int64 * beginY:int64 * sizeX:int64 * sizeY:int64) -> Volume<'T>
Type parameters: 'T

Return a sub image volume beginning at the supplied pixel coordinate with the supplied size in pixels. The sub image retains the coordinates of the parent image.

SubImageWindowAtZ(tensor4, z)
Signature: (tensor4:Tensor4<'T> * z:int64) -> Volume<'T>
Type parameters: 'T
ToByteColor(matrix)
Signature: matrix:Matrix<uint16> -> Matrix<byte>
ToByteColor(matrix)
Signature: matrix:Matrix<uint32> -> Matrix<byte>
ToByteColor(matrix)
Signature: matrix:Matrix<float32> -> Matrix<byte>
ToByteColor(matrix)
Signature: matrix:Matrix<float> -> Matrix<byte>
ToDoubleColor(matrix)
Signature: matrix:Matrix<byte> -> Matrix<float>
ToDoubleColor(matrix)
Signature: matrix:Matrix<uint16> -> Matrix<float>
ToDoubleColor(matrix)
Signature: matrix:Matrix<uint32> -> Matrix<float>
ToDoubleColor(matrix)
Signature: matrix:Matrix<float32> -> Matrix<float>
ToFloatColor(matrix)
Signature: matrix:Matrix<byte> -> Matrix<float32>
ToFloatColor(matrix)
Signature: matrix:Matrix<uint16> -> Matrix<float32>
ToFloatColor(matrix)
Signature: matrix:Matrix<uint32> -> Matrix<float32>
ToFloatColor(matrix)
Signature: matrix:Matrix<float> -> Matrix<float32>
ToImage(matrix)
Signature: matrix:Matrix<'T> -> Matrix<'T>
Type parameters: 'T

Convert this matrix to image memory layout (if it is not already). Coordinates of the result start at [0, 0].

ToImage(volume)
Signature: volume:Volume<'T> -> Volume<'T>
Type parameters: 'T

Convert this volume to image memory layout (if it is not already). Coordinates of the result start at [0, 0, 0].

ToImageWindow(matrix)
Signature: matrix:Matrix<'T> -> Matrix<'T>
Type parameters: 'T

Convert this matrix to image memory layout (if it is not already). Retains coordinates of original image.

ToImageWindow(volume)
Signature: volume:Volume<'T> -> Volume<'T>
Type parameters: 'T

Convert this volume to image memory layout (if it is not already). Retains coordinates of th original volume.

ToUIntColor(matrix)
Signature: matrix:Matrix<byte> -> Matrix<uint32>
ToUIntColor(matrix)
Signature: matrix:Matrix<uint16> -> Matrix<uint32>
ToUIntColor(matrix)
Signature: matrix:Matrix<float32> -> Matrix<uint32>
ToUIntColor(matrix)
Signature: matrix:Matrix<float> -> Matrix<uint32>
ToUShortColor(matrix)
Signature: matrix:Matrix<byte> -> Matrix<uint16>
ToUShortColor(matrix)
Signature: matrix:Matrix<uint32> -> Matrix<uint16>
ToUShortColor(matrix)
Signature: matrix:Matrix<float32> -> Matrix<uint16>
ToUShortColor(matrix)
Signature: matrix:Matrix<float> -> Matrix<uint16>
VecPixel(vol, x, y)
Signature: (vol:Volume<'T> * x:int64 * y:int64) -> Vec<'T>
Type parameters: 'T

Access a single pixel of an image volume as a Vec. Note that this involves an indexing operation with two index multiplications.

VecPixel(vol, position)
Signature: (vol:Volume<'T> * position:V2l) -> Vec<'T>
Type parameters: 'T

Access a single pixel of an image volume as a Vec. Note that this involves an indexing operation with two index multiplications.

VecPixelsX(vol)
Signature: vol:Volume<'T> -> IEnumerable<Vec<'T>>
Type parameters: 'T
VecPixelsXY(vol)
Signature: vol:Volume<'T> -> IEnumerable<Vec<'T>>
Type parameters: 'T
VecPixelsY(vol)
Signature: vol:Volume<'T> -> IEnumerable<Vec<'T>>
Type parameters: 'T
VecPixelsYX(vol)
Signature: vol:Volume<'T> -> IEnumerable<Vec<'T>>
Type parameters: 'T
Fork me on GitHub