imglib / imglib2-roi

Regions of interest (ROIs) and labelings for ImgLib2
Other
8 stars 8 forks source link

Can't use Regions.sample with LabelRegions #18

Closed IdealOutage closed 8 years ago

IdealOutage commented 8 years ago

Regions.sample expects an IterableInterval of type < B extends BooleanType< B >> but a LabelRegion is of type IterableInterval< Void >, therefor you can't use Regions stuff with LabelRegions.

tpietzsch commented 8 years ago

Thanks @seebacherd Good catch. Looks like we missed Regions.sample in the recent change to Void. I'll fix it.

tpietzsch commented 8 years ago

it should work now.

tpietzsch commented 8 years ago

I released imglib2-roi 0.4.1, which contains the fix