Commit 69310651 authored by Stéphane  DALLONGEVILLE's avatar Stéphane DALLONGEVILLE
Browse files

fixed small issue with seed parameter on watershed separation

parent 68a3cb16
......@@ -13,6 +13,7 @@ import icy.plugin.interface_.PluginLibrary;
import icy.roi.ROI;
import icy.roi.ROIUtil;
import icy.system.IcyHandledException;
import icy.type.collection.CollectionUtil;
import icy.type.dimension.Dimension3D;
import icy.type.dimension.Dimension5D;
import icy.type.rectangle.Rectangle5D;
......@@ -69,7 +70,7 @@ public class SeparateROIWatershed extends Plugin implements ROIBlock, PluginLibr
{
if (seeds != null && seeds.length > 0)
{
seedList = Arrays.asList(seeds);
seedList = CollectionUtil.asArrayList(seeds);
result = ROIUtil.computeWatershedSeparation(Arrays.asList(rois), seedList, getDimensionSize(rois),
new Dimension3D.Double(1d, 1d, 1d));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment