ImageCompare allows the user to compare two images visually. The input images are merged into a new image.
Name | Type | Description | |
inImage1 | Mesh_Unif+Node_Data | An image | |
inDatamap1 | DatamapTempl | A datamap | |
inImage2 | Mesh_Unif+Node_Data | An image | |
inDatamap2 | DatamapTempl | A datamap | |
Name | Type | Description | UI Control |
Border value | float | The value used to calculate the border position in the merged image | Slider |
Merge mode | int | 0 is vertical slice 1 is horizontal slice 2 is diagonal 3 is solid 4 is circle 5 is checkerboard |
Slider |
Switch datasets | boolean | Swaps the images | Toggle |
Name | Type | Description | |
out | Mesh_Unif+Node_Data | output surface. | |
obj | Link | A directly renderable object for UViewer2D. | |
img_compare merges 2 images using a selected mode. It is thus possible to compare images visually.
inImage1
This is an image.
inDatamap1
This is a datamap for Image1.
inImage2
This is an image.
inDatamap2
This is a datamap for Image2.
Border Value
Border value changes from 0 to 1 and defines the position of the border between the parts of the merged image.
Merge Mode
There are 6 merge modes (from 0 to 5). Mode 0 is vertical slice, 1 is horizontal slice, 2 is diagonal, 3 is solid (Image1), 4 is circle, 5 is checkerboard.
Switch datasets
Swaps the source images.
out
The merged image.
The User Macro img_compare makes use of the Functional Macro ImageFunc and the UI Macro ImageUI.
An example application ImageEg is provided, which uses 2 different slices of the hydrogen data to display a merged image.
iac_proj/img_comp/img_mods.v contains the V definitions of the ImageParams parameter block and the Image_Compare module.
iac_proj/img_comp/img_macs.v contains the V definitions of the ImageFunc Functional Macro, the ImageUI User Interface Macro, and the img_compare User Macro.
iac_proj/img_comp/img_apps.v contains the V definition of the example application ImageEg.
anonymous
Alexander Korban Manchester Visualization Centre
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester United Kingdom M13 9PL