Extract and display ROIs from a Zeiss CZI image
There are two functions in the ZIP file. One of them (extractZeissRois) extracts ROIs from a Zeiss CZI file opened by the bfopen function of Bio-Formats. Information about the ROIs is saved in a structure variable.
The second function (drawZeissRois) draws the ROIs stored in the structure variable.
The displayed image shows eight ROIs in the ZEN program and in an image window in which ROIs extracted and displayed by the two programs in the ZIP file are shown.
function allRois=extractZeissRois(bfImage)
The function extracts ROIs from a Zeiss CZI file opened by Bio-Fomats. The CZI image file must be opened by the 'bfImage' function of Bio-Formats. This is the input to the extractZeissRois function (bfImage). The ROIs are stored in a structure variable (allRois). This structure variable can be used by the drawZeissRois function to display the ROIs.
function roiImage=drawZeissRois(varargin)
The function displays ROIs extracted from a Zeiss CZI file by the extractZeissRois function.
roiImage=drawZeissRois(roiStructure, imageSize, outputType, filled, separateImages)
OR
roiImage=drawZeissRois(roiStructure, imageSize) defaults to 'dipimage' output type, filled ROIs in one image.
roiStructure - a structure variable generated by extractZeissRois
imageSize - a two-element array: [xSize,ySize], i.e. [horizontalSize,verticalSize]
outputType - 'dipimage' or 'matlab' corresponding to a dip_image or a matlab numeric array, respectively
filled - 1 or 0 corresponding to filled ROIs or only their circumference
separateImage - 1 if each ROI is to be saved in a separate image. Otherwise all ROIs will be drawn in the same image.
Zitieren als
Peter Nagy (2025). Extract and display ROIs from a Zeiss CZI image (https://www.mathworks.com/matlabcentral/fileexchange/89273-extract-and-display-rois-from-a-zeiss-czi-image), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0 |