This pull request adds two new signatures to ROIService:
toImgLabeling(ROITree roiTree, Interval interval), creating an ImgLabeling with the size of interval and an Integer label for all of the children of roiTree.
toImgLabeling(Dataset dataset) creating an ImgLabeling taking the ROIs attached to dataset.
This makes it possible to write a script like this to get an ImgLabeling from the current overlay in Fiji:
#@ ROIService roiService
#@ Dataset dataset
labeling = roiService.toImgLabeling(dataset)
result = labeling.getIndexImg() // to get something that can be displayed
Also bump to pom-scijava-29.2.1 (this requires pinning to imglib2-5.9.2 as long as #95 is not merged).
This pull request adds two new signatures to
ROIService
:toImgLabeling(ROITree roiTree, Interval interval)
, creating anImgLabeling
with the size ofinterval
and anInteger
label for all of the children ofroiTree
.toImgLabeling(Dataset dataset)
creating anImgLabeling
taking the ROIs attached todataset
.This makes it possible to write a script like this to get an
ImgLabeling
from the current overlay in Fiji:Also bump topom-scijava-29.2.1
(this requires pinning toimglib2-5.9.2
as long as #95 is not merged).