Thumbnail

MacroModule
genre Resample
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition Geometry.def
keywords pictogram, pictorial, index, miniature, resample

Purpose

The module Thumbnail generates a thumbnail image with standardized size, appearance, and contrast.

Usage

Connect input image and press Update to generate thumbnail.

Details

For the default resolution, a border is available to be included in the thumbnail.

Windows

Default Panel

../../../Modules/Macros/Geometry/mhelp/Images/Screenshots/Thumbnail._default.png

Input Fields

inImage

name: inImage, type: Image

The input image

Output Fields

outThumbnail

name: outThumbnail, type: Image

The generated thumbnail as ML image

Parameter Fields

Field Index

Apply DICOM LUT: Bool Format: Enum
auto (autoResolution): Bool Is Up To Date: Bool
auto (autoFilename): Bool Resolution: Integer
auto (autoSave): Bool Save: Trigger
auto (autoUpdate): Bool Update: Trigger
Contrast: Double Use Border: Bool
File Status: String  
Filename: String  

Visible Fields

Resolution

name: resolution, type: Integer, default: 48, minimum: 8, maximum: 1024

Sets the output size (square, i.e. equals x and y size).

auto (autoResolution)

name: autoResolution, type: Bool, default: TRUE

If checked, the default resolution is used.

Contrast

name: contrast, type: Double, default: 98, minimum: 80, maximum: 100

Sets the upper quantile of gray values mapped to the output range of 0…255.

Thus, a value of 100 keeps the original gray value range, and lower values increase the contrast.

Apply DICOM LUT

name: applyDicomLUT, type: Bool, default: FALSE

If enabled, the Modality and VOI LUT as stored in the DICOM tags will be applied to the image data for thumbnail generation

Filename

name: filename, type: String, default: _thumb.png

Sets the output filename for the internal save method.

auto (autoFilename)

name: autoFilename, type: Bool, default: TRUE

Auto-generate output file name from input file name.

Format

name: format, type: Enum, default: PNG

Defines the format for the internal save method.

Values:

Title Name Deprecated Name
Tiff TIFF  
Raw RAW  
Quocmesh QUOCMESH  
Pnm PNM  
Png PNG  
Jpg JPG  
Dicom DICOM  
Bmp BMP  
Analyze Analyze  
DICOM/TIFF DICOMTIFF DICOM/TIFF

Save

name: save, type: Trigger

If pressed, the thumbnail image is saved.

auto (autoSave)

name: autoSave, type: Bool, default: FALSE

If checked, the thumbnail image is automatically saved when the thumbnail is updated.

File Status

name: status, type: String, persistent: no

Shows status information about the module.

Update

name: update, type: Trigger

If pressed, the thumbnail image is updated according to the current parameters.

auto (autoUpdate)

name: autoUpdate, type: Bool, default: TRUE

If checked, the module automatically updates the thumbnail image on changing parameters.

Use Border

name: useBorder, type: Bool, default: TRUE

If checked, a border is generated, only in combination with auto.

Is Up To Date

name: isUpToDate, type: Bool, persistent: no

Indicates if the current output is up to date.