Name
reconstitute_mask - Fill in the mask applied image with image average under the mask area such that image display would have non-sharp contrast. Perform it on k_means class averages before run e2display for display.
Usage
- reconstitued_image = reconstitute_mask(image_to_be_reconstituted, new_mask,save_file_on_disk, saved_file_name )
Input
- image_to_be_reconstituted
- in-core image, in-core image stack, or file name string, which are applied a mask. The value outside the image is zero.
- new_mask
- mask image, incore file or name string, or the raidus of mask under which the new_image is reconstituted
- save_file_on_disk
- output file is saved on disk or returned, default value is True.
- save_file_name
- The saved file name. By default, it is set as image_in_reconstituted_mask.hdf.
Output
- reconstitued_image
- image or image stack with masked area filled with image average.
Options
Description
Method
Reference
Author / Maintainer
Zhong Huang
Keywords
- category 1
- UTILITIES
Files
fundamentals.py
See also
Maturity
- stable
- works for most people, has been tested; test cases/examples available.
Bugs
None. It is perfect.