Effacer les filtres
Effacer les filtres

How to save ROIs from ImageJ's ROI Manager using MIJ

5 vues (au cours des 30 derniers jours)
Pushkal Sharma
Pushkal Sharma le 18 Mar 2021
Hi, I am trying to use MIJ for running FIJI inside MATLAB to run a pipeline:
I have an image on which I need to run an ImageJ Plugin which will identify all ROIs and then I need to save those identified ROIs as a zip in a folder. I am not sure how to save ROIs being opened up in the ROI manager since MATLAB could not identify the command .getRoi() and keeps showing an error
No method 'getRoi' with matching signature found for class 'MIJ'.
MIJ.start('C:\Users\ChemeGrad2019\Downloads\fiji-win64\Fiji.app');
for k=1:length(imgs)
name_char=imgNames(k).folder+"\"+imgNames(k).name;
name=convertCharsToStrings(name_char);
ij.IJ.open(name);
MIJ.run('LabelMap to ROI Manager (2D)');
a=MIJ.getRoi();
MIJ.roiManager("Save", name+".zip");
end

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by