JointHistogramMask

MLModule
genre Histogram
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLJointHist
definition MLJointHist.def
keywords 2D

Purpose

The module JointHistogramMask generates a binary mask using a selected region from a 2D histogram or a RGBA mask using a 2D-RGBA-LUT.

The 2D-LUT is provided as a third input images and the 2D histogram is computed internally.

Details

Example 1

For an example we use simulated T1- and T2-weighted MR images. The images were obtained from the BrainWeb MR simulator.

T1-weighted image:

../../../Modules/ML/MLJointHist/mhelp/Images/t1.JPG

T2-weighted image:

../../../Modules/ML/MLJointHist/mhelp/Images/t2.JPG

2D-Histogram with a selected region:

../../../Modules/ML/MLJointHist/mhelp/Images/histogram2.JPG

Resulting images (T1-weighted with overlays):

Mask image 1:

../../../Modules/ML/MLJointHist/mhelp/Images/maskImage1.JPG

Mask image 2:

../../../Modules/ML/MLJointHist/mhelp/Images/maskImage2.JPG

Joint mask:

../../../Modules/ML/MLJointHist/mhelp/Images/jointMask.JPG

Example 2

This example use a grey image, a distance image and a 2D-LUT to compute a mask.

Grey image:

../../../Modules/ML/MLJointHist/mhelp/Images/l_gray.jpg

Distance image:

../../../Modules/ML/MLJointHist/mhelp/Images/l_dist.jpg

2D-LUT (grey, distance):

../../../Modules/ML/MLJointHist/mhelp/Images/l_2dlut.jpg

Resulting mask:

../../../Modules/ML/MLJointHist/mhelp/Images/l_mask.jpg

Windows

Default Panel

../../../Modules/ML/MLJointHist/mhelp/Images/Screenshots/JointHistogramMask._default.png

Input Fields

The module requires two grey images with the same extent and a 2D-LUT.

input0

name: input0, type: Image

Grey value image.

input1

name: input1, type: Image

Grey value image.

input2

name: input2, type: Image

2D-LUT.

Output Fields

output0

name: output0, type: Image

RGBA image with the same extent as the first two input images.

Parameter Fields

Field Index

End World Pos. Of Rectangle: Vector3 lut2dStepSizeX: Float
imgXMax: Float lut2dStepSizeY: Float
imgXMin: Float Start World Pos. Of Rectangle: Vector3
imgYMax: Float Use 2D-LUT: Bool
imgYMin: Float Use rectangle: Bool
inImg0Size: Vector3  
inImg1Size: Vector3  
inImg2Size: Vector3  

Visible Fields

Use rectangle

name: useRect, type: Bool, default: FALSE, deprecated name: useRectFld

If checked, the mask is being calculated on base of a selected region in a 2D-histogram.

Use 2D-LUT

name: useLut, type: Bool, default: TRUE, deprecated name: useLutFld

If checked, the mask is being calculated on base of the whole attached 2D-LUT.

Start World Pos. Of Rectangle

name: rectCoordP0, type: Vector3, default: 0 0 0, deprecated name: rectKoordP0Fld

Sets the start position of the rectangle selection in the 2D-LUT.

End World Pos. Of Rectangle

name: rectCoordP1, type: Vector3, default: 0 0 0, deprecated name: rectKoordP1Fld

Sets the end position of the rectangle selection in the 2D-LUT.

Hidden Fields

inImg0Size

name: inImg0Size, type: Vector3, default: 0 0 0

inImg1Size

name: inImg1Size, type: Vector3, default: 0 0 0

inImg2Size

name: inImg2Size, type: Vector3, default: 0 0 0

imgXMin

name: imgXMin, type: Float, default: 0

imgXMax

name: imgXMax, type: Float, default: 0

imgYMin

name: imgYMin, type: Float, default: 0

imgYMax

name: imgYMax, type: Float, default: 0

lut2dStepSizeX

name: lut2dStepSizeX, type: Float, default: 0

lut2dStepSizeY

name: lut2dStepSizeY, type: Float, default: 0