Search in sources :

Example 1 with ColoredLabelsModel

use of sc.fiji.labkit.ui.models.ColoredLabelsModel in project labkit-ui by juglab.

the class CustomizedSegmentationComponentDemo method initActions.

private void initActions() {
    final Holder<SegmentationItem> selectedSegmenter = segmentationModel.segmenterList().selectedSegmenter();
    final ImageLabelingModel labelingModel = segmentationModel.imageLabelingModel();
    new TrainClassifier(extensible, segmentationModel.segmenterList());
    new ClassifierSettingsAction(extensible, segmentationModel.segmenterList());
    new ClassifierIoAction(extensible, segmentationModel.segmenterList());
    new LabelingIoAction(extensible, labelingModel);
    new AddLabelingIoAction(extensible, labelingModel.labeling());
    new SegmentationExportAction(extensible, labelingModel);
    new ResetViewAction(extensible, labelingModel);
    new BatchSegmentAction(extensible, selectedSegmenter);
    new SegmentationAsLabelAction(extensible, segmentationModel);
    new BitmapImportExportAction(extensible, labelingModel);
    new LabelEditAction(extensible, false, new ColoredLabelsModel(labelingModel));
    MeasureConnectedComponents.addAction(extensible, labelingModel);
    labelingComponent.addShortcuts(extensible.getShortCuts());
}
Also used : ResetViewAction(sc.fiji.labkit.ui.actions.ResetViewAction) LabelEditAction(sc.fiji.labkit.ui.actions.LabelEditAction) ColoredLabelsModel(sc.fiji.labkit.ui.models.ColoredLabelsModel) BatchSegmentAction(sc.fiji.labkit.ui.actions.BatchSegmentAction) SegmentationExportAction(sc.fiji.labkit.ui.actions.SegmentationExportAction) ClassifierIoAction(sc.fiji.labkit.ui.actions.ClassifierIoAction) ClassifierSettingsAction(sc.fiji.labkit.ui.actions.ClassifierSettingsAction) ImageLabelingModel(sc.fiji.labkit.ui.models.ImageLabelingModel) AddLabelingIoAction(sc.fiji.labkit.ui.actions.AddLabelingIoAction) LabelingIoAction(sc.fiji.labkit.ui.actions.LabelingIoAction) AddLabelingIoAction(sc.fiji.labkit.ui.actions.AddLabelingIoAction) SegmentationItem(sc.fiji.labkit.ui.models.SegmentationItem) BitmapImportExportAction(sc.fiji.labkit.ui.actions.BitmapImportExportAction) SegmentationAsLabelAction(sc.fiji.labkit.ui.actions.SegmentationAsLabelAction) TrainClassifier(sc.fiji.labkit.ui.segmentation.TrainClassifier)

Example 2 with ColoredLabelsModel

use of sc.fiji.labkit.ui.models.ColoredLabelsModel in project labkit-ui by juglab.

the class LabelPanelDemo method main.

public static void main(String... args) {
    Img<? extends NumericType<?>> image = ArrayImgs.unsignedBytes(10, 10);
    ImageLabelingModel imageLabeling = new ImageLabelingModel(new DatasetInputImage(image));
    ColoredLabelsModel model = new ColoredLabelsModel(imageLabeling);
    LabelPanel panel = new LabelPanel(null, model, true, ignore -> new JPopupMenu());
    showInFrame(panel.getComponent());
}
Also used : ImageLabelingModel(sc.fiji.labkit.ui.models.ImageLabelingModel) DatasetInputImage(sc.fiji.labkit.ui.inputimage.DatasetInputImage) ColoredLabelsModel(sc.fiji.labkit.ui.models.ColoredLabelsModel)

Example 3 with ColoredLabelsModel

use of sc.fiji.labkit.ui.models.ColoredLabelsModel in project labkit-ui by juglab.

the class SegmentationComponent method initActions.

private void initActions() {
    final Holder<SegmentationItem> selectedSegmenter = segmentationModel.segmenterList().selectedSegmenter();
    final ImageLabelingModel labelingModel = segmentationModel.imageLabelingModel();
    new TrainClassifier(extensible, segmentationModel.segmenterList());
    new ClassifierSettingsAction(extensible, segmentationModel.segmenterList());
    new ClassifierIoAction(extensible, segmentationModel.segmenterList());
    new LabelingIoAction(extensible, labelingModel);
    new AddLabelingIoAction(extensible, labelingModel.labeling());
    new SegmentationExportAction(extensible, labelingModel);
    new ResetViewAction(extensible, labelingModel);
    new BatchSegmentAction(extensible, selectedSegmenter);
    new SegmentationAsLabelAction(extensible, segmentationModel);
    new BitmapImportExportAction(extensible, labelingModel);
    new LabelEditAction(extensible, unmodifiableLabels, new ColoredLabelsModel(labelingModel));
    MeasureConnectedComponents.addAction(extensible, labelingModel);
    new ShowHelpAction(extensible);
    labelingComponent.addShortcuts(extensible.getShortCuts());
}
Also used : ColoredLabelsModel(sc.fiji.labkit.ui.models.ColoredLabelsModel) ImageLabelingModel(sc.fiji.labkit.ui.models.ImageLabelingModel) SegmentationItem(sc.fiji.labkit.ui.models.SegmentationItem) TrainClassifier(sc.fiji.labkit.ui.segmentation.TrainClassifier)

Aggregations

ColoredLabelsModel (sc.fiji.labkit.ui.models.ColoredLabelsModel)3 ImageLabelingModel (sc.fiji.labkit.ui.models.ImageLabelingModel)3 SegmentationItem (sc.fiji.labkit.ui.models.SegmentationItem)2 TrainClassifier (sc.fiji.labkit.ui.segmentation.TrainClassifier)2 AddLabelingIoAction (sc.fiji.labkit.ui.actions.AddLabelingIoAction)1 BatchSegmentAction (sc.fiji.labkit.ui.actions.BatchSegmentAction)1 BitmapImportExportAction (sc.fiji.labkit.ui.actions.BitmapImportExportAction)1 ClassifierIoAction (sc.fiji.labkit.ui.actions.ClassifierIoAction)1 ClassifierSettingsAction (sc.fiji.labkit.ui.actions.ClassifierSettingsAction)1 LabelEditAction (sc.fiji.labkit.ui.actions.LabelEditAction)1 LabelingIoAction (sc.fiji.labkit.ui.actions.LabelingIoAction)1 ResetViewAction (sc.fiji.labkit.ui.actions.ResetViewAction)1 SegmentationAsLabelAction (sc.fiji.labkit.ui.actions.SegmentationAsLabelAction)1 SegmentationExportAction (sc.fiji.labkit.ui.actions.SegmentationExportAction)1 DatasetInputImage (sc.fiji.labkit.ui.inputimage.DatasetInputImage)1