cameraImageAdjust
Version 1.0.0 (2.3 KB) by
Alexander Moody
Adjusts non-uniform images with white background. Intended for use on full-tissue histological images.
This function is intended for use with medical images of samples taken
with a handheld camera or brightfield microscope. Regardless of
acquisition modality, the background must be bright (i.e. near the pixel
maximum). Using these images and a mask to denote the background area,
this function modifies input images to adjust for inconsistent or
non-uniform lighting in the background. The sample is removed from the
image using the background mask and the gap is filled in. All pixels are
increased to the highest possible pixel value and the sample is
added back in over the calibrated background image.
INPUTS
images - uint8 single image or cell - must be color (will be changed in
version 2)
bkgndMask - logical single image or cell - size must match images
OUTPUTS
images - in-place optimization used to conserve memory on large sets
DIRECTIONS FOR USE
Use the image segmenter app or manual code to segment the background from
the image. Ensure that no part of the sample is included in the
background mask. Use the raw image as the first input and the background
logical mask as the second input. The resultant image will be the
calibrated image. No other outputs are provided.
Cite As
Alexander Moody (2024). cameraImageAdjust (https://www.mathworks.com/matlabcentral/fileexchange/133582-cameraimageadjust), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |