How to save ROIs from ImageJ's ROI Manager using MIJ
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!