Define allowed merge methods.
Define bash functions, used to factorize and reduce scripts :
Process constructor. Bless an instance.
|pyr||BE4::Pyramid - Images pyramid to generate|
|processParams||hash - Parameters in the section process|
merge_method - string - Way to merge several overlayed images (can be in lower case)
job_number - integer - Level of parallelization for scripts
path_temp - string - Directory, where to write proper temporary directory
path_temp_common - string - Directory, where to write common temporary directory
path_shell - string - Directory, where to write scripts
use_masks - string - TRUE or FALSE, to precise if masks have to be used
- the node owns just one source image and is compatible with the final cache -> we write a symbolic link : makeLink.
- the node owns just one source image and is not compatible with the final cache -> we have just to convert image : compression and samples per pixel, commands are written in scripts : mergeImages.
- the node owns several source images -> we use tool ‘overlayNtiff’, commands are written in scripts : mergeImages.
Create a symbolic link in the final cache, to a source image. Return TRUE if success, FALSE otherwise.
|finaleImage||string - Absolute path of the final image|
|sourceImage||string - Absolute source image’s path, to link|
Write commands in the current script to merge N (N could be 1) images according to the merge method. We use tiff2rgba to convert into work format and overlayNtiff to merge. Masks are treated if needed. Code is store into the node.
If just one input image, overlayNtiff is used to change the image’s properties (samples per pixel for example). Mask is not treated (masks have always the same properties and a symbolic link have been created).
A boolean, TRUE if success, FALSE otherwise.
Configure bash functions to write in scripts’ header thanks to pyramid’s components.
Check merge method value. Possible values: ‘REPLACE’,’ALPHATOP’,’MULTIPLY’,’TOP’.
|mergeMethod||string - Merge method value|
Writes file’s path in the pyramid’s content list and store the root.
|path||string - Path to write in the cache list : root will be factorize.|
Write roots at the top of the cache list.
Close all scripts and the list.
Returns all commands’ informations. Useful for debug.
Object JOINCACHE::Process :
Merge method : MULTIPLY