Search in sources :

Example 1 with ChannelSetting

use of sc.fiji.labkit.pixel_classification.pixel_feature.settings.ChannelSetting in project labkit-ui by juglab.

the class TrainableSegmentationSegmenter method initGlobalSettings.

private GlobalSettings initGlobalSettings(List<Pair<ImgPlus<?>, Labeling>> trainingData) {
    if (trainingData.isEmpty())
        return GlobalSettings.default2d().build();
    ImgPlus<?> image = trainingData.get(0).getA();
    final ChannelSetting channelSetting = getChannelSetting(image);
    return GlobalSettings.default2d().dimensions(ImgPlusViewsOld.numberOfSpatialDimensions(image)).channels(channelSetting).sigmaRange(1.0, 8.0).pixelSize(getPixelSize(image)).build();
}
Also used : ChannelSetting(sc.fiji.labkit.pixel_classification.pixel_feature.settings.ChannelSetting)

Aggregations

ChannelSetting (sc.fiji.labkit.pixel_classification.pixel_feature.settings.ChannelSetting)1