Skip to content
Snippets Groups Projects
Commit 22c09c9b authored by Constantin Pape's avatar Constantin Pape
Browse files

Start to implement segmentation correction

parent 062cc38d
No related branches found
No related tags found
1 merge request!8Segmentation validation and correction
import os
import napari
from elf.io import open_file
# TODO
# correct false merges via lifted multicut (or watershed)
# load raw data, watershed from bounding box for correction id
# load sub-graph for nodes corresponding to this segment
# (this takes long, so preload 5 or so via daemon process)
# add layer for seeds, resolve the segment via lmc (or watershed)
# once happy, store the new ids and move on to the next
class CorrectFalseMerges:
def __init__(self, project_folder,
correct_id_path=None, table_path=None,
raw_path=None, raw_key=None,
ws_path=None, ws_key=None,
node_label_path=None, node_label_key=None,
problem_path=None, graph_key=None, cost_key=None):
pass
def __call__(self):
pass
import os
import json
import napari
from elf.io import open_file
# TODO
# mark false merges in segmentation:
# open napari viewer with raw data and segmentation (in appropriate res)
# set annotations in 'has_false_merge' and 'is_correct' layer
# clear segmentations that have an annotation (upon key press)
# store annotations in the project folder
class MarkFalseMerges:
def __init__(self, project_folder,
raw_path=None, raw_key=None,
seg_path=None, seg_key=None):
pass
def __call__(self):
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment