ImageHash

MLModule
genre Inspectors
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLCrypto
definition MLCrypto.def
keywords sha, md5

Purpose

The module ImageHash computes the hash value of an input image.

Usage

The input source must be connected to a proper image source. The selected hashing and encoding algorithms are used to compute the hash.

Details

The hashes provided by this module are taken from a cryptography library. They are calculated from the binary representation of the image, independent of page size, where the voxels are ordered ascending in x, y, z, c, t, u dimensions resp. .

The main reason for using cryptographic hashes instead of the Checksum module is to have less probability for hash collisions.

Windows

Default Panel

../../../Modules/ML/MLCrypto/mhelp/Images/Screenshots/ImageHash._default.png

Input Fields

input0

name: input0, type: Image

Image for which a hashkey should be computed.

Parameter Fields

Field Index

Auto Update: Bool
Hash: String
Hash Encoder: Enum
Hash Function: Enum
Update: Trigger
Valid: Bool

Visible Fields

Hash

name: hash, type: String, persistent: no

Shows the hash resulting from the input image.

Valid

name: hashValid, type: Bool, persistent: no

Shows whether the hash is valid.

Hash Function

name: hashSelector, type: Enum, default: SHA256

Defines the hash function.

Values:

Title Name
Sha1 SHA1
Sha224 SHA224
Sha256 SHA256
Sha384 SHA384
Sha512 SHA512
Md5 MD5

Hash Encoder

name: encoderSelector, type: Enum, default: Base64

Defines the encoder used for the resulting hash.

Values:

Title Name
Base64 Base64
Hex Hex

Auto Update

name: autoUpdate, type: Bool, default: TRUE

Update

name: update, type: Trigger