ImageProcessing 1.0.0

Edit this page

GpuProcessing Module

Module with functions for image processing on the GPU

Functions and values

Function or value Description

applyFilter filter kernel clContext localWorkSize queue

Full Usage: applyFilter filter kernel clContext localWorkSize queue

Parameters:
    filter : float32[][] - A two-dimensional array applied to an image as a filter
    kernel : ClProgram<Range1D, (ClArray<byte> -> int -> int -> ClArray<float32> -> int -> ClArray<byte> -> unit)> - Compiled kernel for filter application
    clContext : ClContext - Abstraction over OpenCL context
    localWorkSize : int - Local workgroup size
    queue : MailboxProcessor<Msg> - Command queue capable of handling messages of type Msg

Returns: MyImage -> MyImage Image with type MyImage

Filter application

filter : float32[][]

A two-dimensional array applied to an image as a filter

kernel : ClProgram<Range1D, (ClArray<byte> -> int -> int -> ClArray<float32> -> int -> ClArray<byte> -> unit)>

Compiled kernel for filter application

clContext : ClContext

Abstraction over OpenCL context

localWorkSize : int

Local workgroup size

queue : MailboxProcessor<Msg>

Command queue capable of handling messages of type Msg

Returns: MyImage -> MyImage

Image with type MyImage

fishEye kernel clContext localWorkSize queue

Full Usage: fishEye kernel clContext localWorkSize queue

Parameters:
    kernel : ClProgram<Range1D, (ClArray<byte> -> int -> int -> ClArray<byte> -> unit)> - Compiled kernel for fisheye filter application
    clContext : ClContext - Abstraction over OpenCL context
    localWorkSize : int - Local workgroup size
    queue : MailboxProcessor<Msg> - Command queue capable of handling messages of type Msg

Returns: MyImage -> MyImage Image with type MyImage

Applying fisheye filter to the image

kernel : ClProgram<Range1D, (ClArray<byte> -> int -> int -> ClArray<byte> -> unit)>

Compiled kernel for fisheye filter application

clContext : ClContext

Abstraction over OpenCL context

localWorkSize : int

Local workgroup size

queue : MailboxProcessor<Msg>

Command queue capable of handling messages of type Msg

Returns: MyImage -> MyImage

Image with type MyImage

mirror side kernel clContext localWorkSize queue

Full Usage: mirror side kernel clContext localWorkSize queue

Parameters:
    side : MirrorDirection - The side to which the image will be reflected
    kernel : ClProgram<Range1D, (ClArray<byte> -> int -> int -> int -> ClArray<byte> -> unit)> - Compiled kernel for reflection application
    clContext : ClContext - Abstraction over OpenCL context
    localWorkSize : int - Local workgroup size
    queue : MailboxProcessor<Msg> - Command queue capable of handling messages of type Msg

Returns: MyImage -> MyImage Image with type MyImage

Reflection of image

side : MirrorDirection

The side to which the image will be reflected

kernel : ClProgram<Range1D, (ClArray<byte> -> int -> int -> int -> ClArray<byte> -> unit)>

Compiled kernel for reflection application

clContext : ClContext

Abstraction over OpenCL context

localWorkSize : int

Local workgroup size

queue : MailboxProcessor<Msg>

Command queue capable of handling messages of type Msg

Returns: MyImage -> MyImage

Image with type MyImage

rotate side kernel clContext localWorkSize queue

Full Usage: rotate side kernel clContext localWorkSize queue

Parameters:
    side : Side - The side to which the image will be rotated
    kernel : ClProgram<Range1D, (ClArray<byte> -> int -> int -> int -> ClArray<byte> -> unit)> - Compiled kernel for rotation application
    clContext : ClContext - Abstraction over OpenCL context
    localWorkSize : int - Local workgroup size
    queue : MailboxProcessor<Msg> - Command queue capable of handling messages of type Msg

Returns: MyImage -> MyImage Image with type MyImage

Rotate of image

side : Side

The side to which the image will be rotated

kernel : ClProgram<Range1D, (ClArray<byte> -> int -> int -> int -> ClArray<byte> -> unit)>

Compiled kernel for rotation application

clContext : ClContext

Abstraction over OpenCL context

localWorkSize : int

Local workgroup size

queue : MailboxProcessor<Msg>

Command queue capable of handling messages of type Msg

Returns: MyImage -> MyImage

Image with type MyImage