Closed joshmoore closed 5 years ago
This works as expected.
The command to run is ma = strToMapAnnotation(session, str);
and not ma = strToMapAnnotation(str);
as indicated
Tested with Matlab 2019a 👍
>> str = ["hoge","bar"; "boo","hoo"; "poo",""];
ma = strToMapAnnotation(session, str)
str2 = mapAnnotationToCellstr(ma)
ma =
omero.model.MapAnnotationI@7dd4f726
str2 =
3×2 cell array
{'hoge'} {'bar' }
{'boo' } {'hoo' }
{'poo' } {0×0 char}
Copy of openmicroscopy/openmicroscopy#5792
mapAnnotationToCellstr.m components\tools\OmeroM\src\helper
What this PR does
The two MATLAB functions were added to assist manipulation of MapAnnoation objects in MATLAB.
strToMapAnnotation.m components\tools\OmeroM\src\helper mapAnnotationToCellstr.m components\tools\OmeroM\src\helper
Testing this PR
required setup None particularly.
actions to perform
ma is
omero.model.MapAnnotationI
object. str2 is a cell array of chars.Related reading
Link to cards, tickets, other PRs:
Handling of MapAnnotation in MATLAB was cumbersome.
Addition of these functions will simplify the task of editing MapAnnotation objects.