Replicate

MLModule
genre Subimage
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLGeometry1
definition MLGeometry1.def
see also SubImage, ConcatenateImages
keywords clone, copy, multiple, repeat

Purpose

The module Replicate replicates an image according to the specified number of replicas in each image dimension.

Details

Fractional numbers of replicas lead to a replication of a fraction of the input image.

For example, the replication vector 1.5 1 1 1 1 1 leads to a replication of the first half of the input image in x-direction.

The output page size is usually equal to the input page size.

If a any dimension the input page extends exceeds the image extents, the page extents will be replaced by the smaller image extents in that dimension.

In case the input page size (possibly only after the mentioned adjustment) will be smaller than a 2D XY slice, the output pages are adjusted to 2D pages of size extX extY to avoid inefficient page sizes of larger images in networks. If these 2D pages would become too large (> 2^20), both X and Y extends will divided by a suitable power of 2.

Arbitrary page sizes are allowed for the input.

Tips

If you need to replicate in two dimensions e.g. to spread a per slice max or mean result from use of SubImageStatistics on a original image to an image of the original images extends for further use along with that images it may be faster to use Replicate twice; best first to replicate in X and than in Y.

Windows

Default Panel

../../../Modules/ML/MLGeometry1/mhelp/Images/Screenshots/Replicate._default.png

Parameter Fields

Field Index

C: Float Z: Float
Reset: Trigger  
Status: String  
T: Float  
U: Float  
V: String  
X: Float  
Y: Float  

Visible Fields

V

name: replicationVector, type: String, default: 1  1  1  1  1  1

Sets the replication values as a 6 dimensional vector with floating point entries.

X

name: replicationVectorX, type: Float, default: 1

Sets the number of replications in x-dimension.

Y

name: replicationVectorY, type: Float, default: 1

Sets the number of replications in y-dimension.

Z

name: replicationVectorZ, type: Float, default: 1

Sets the number of replications in z-dimension.

C

name: replicationVectorC, type: Float, default: 1

Sets the number of replications in c-dimension.

T

name: replicationVectorT, type: Float, default: 1

Sets the number of replications in t-dimension.

U

name: replicationVectorU, type: Float, default: 1

Sets the number of replications in u-dimension.

Status

name: status, type: String, persistent: no

Shows the status of this module.

Reset

name: reset, type: Trigger

If pressed, the default replication vector 1 1 1 1 1 1 is set.