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());
}
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());
}
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());
}
Aggregations