How to save ROIs from ImageJ's ROI Manager using MIJ
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!