コード例 #1
0
ファイル: chunk_edges.py プロジェクト: seung-lab/Synaptor
def main(configfilename, tagfilename=None):

    config = parser.parse(configfilename)

    if tagfilename is not None:
        bboxes = io.utils.read_bbox_tag_filename(tagfilename)
    else:
        bboxes = None

    iterator = tc.create_chunk_edges_tasks(
        config["image"],
        config["tempoutput"],
        config["baseseg"],
        storagestr=config["storagestrs"][0],
        hashmax=config["nummergetasks"],
        storagedir=config["storagestrs"][1],
        volshape=config["volshape"],
        chunkshape=config["chunkshape"],
        startcoord=config["startcoord"],
        patchsz=config["patchshape"],
        normcloudpath=config["normcloudpath"],
        resolution=config["voxelres"],
        aggscratchpath=config["aggscratchpath"],
        aggchunksize=config["aggchunksize"],
        aggmaxmip=config["aggmaxmip"],
        aggstartcoord=config["startcoord"],
        bboxes=bboxes)

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)
コード例 #2
0
def main(configfilename):

    config = parser.parse(configfilename)

    task = tc.create_index_seg_map_task(config["storagestrs"][0])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all([task])
コード例 #3
0
ファイル: merge_overlaps.py プロジェクト: torms3/Synaptor
def main(configfilename):

    config = parser.parse(configfilename)

    iterator = tc.create_merge_overlaps_task(config["storagestrs"][0])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all([iterator])
コード例 #4
0
def main(configfilename):

    config = parser.parse(configfilename)

    task = tc.create_seg_graph_cc_task(config["storagestrs"][0],
                                       config["nummergetasks"])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all([task])
コード例 #5
0
def main(configfilename):

    config = parser.parse(configfilename)

    iterator = tc.create_pick_edge_tasks(config["storagestrs"][0],
                                         config["nummergetasks"])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)
コード例 #6
0
def main(configfilename):

    config = parser.parse(configfilename)

    task = tc.create_merge_ccs_task(
               config["storagestrs"][0], config["szthresh"],
               config["maxfaceshape"])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all([task])
コード例 #7
0
ファイル: match_contins.py プロジェクト: torms3/Synaptor
def main(configfilename):

    config = parser.parse(configfilename)

    iterator = tc.create_match_contins_tasks(
        config["storagestrs"][0],
        config["nummergetasks"],
        max_faceshape=config["maxfaceshape"])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)
コード例 #8
0
ファイル: merge_dups.py プロジェクト: torms3/Synaptor
def main(configfilename):

    config = parser.parse(configfilename)

    iterator = tc.create_merge_dup_tasks(config["storagestrs"][0],
                                         config["nummergetasks"],
                                         config["mergethresh"],
                                         config["szthresh"],
                                         config["voxelres"],
                                         config["storagestrs"][1])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)
コード例 #9
0
ファイル: chunk_overlaps.py プロジェクト: seung-lab/Synaptor
def main(configfilename):

    config = parser.parse(configfilename)

    iterator = tc.create_overlap_tasks(config["output"],
                                       config["baseseg"],
                                       config["storagestrs"][0],
                                       volshape=config["volshape"],
                                       chunkshape=config["chunkshape"],
                                       startcoord=config["startcoord"],
                                       resolution=config["voxelres"])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)
コード例 #10
0
ファイル: merge_seginfo.py プロジェクト: torms3/Synaptor
def main(configfilename):

    config = parser.parse(configfilename)

    enforce_szthresh = config["workflowtype"] == "Segmentation"
    szthresh = config["szthresh"] if enforce_szthresh else None

    iterator = tc.create_merge_seginfo_tasks(
        config["storagestrs"][0],
        config["nummergetasks"],
        aux_storagestr=config["storagestrs"][1],
        szthresh=szthresh)

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)
コード例 #11
0
ファイル: chunk_overlaps.py プロジェクト: torms3/Synaptor
def main(configfilename):

    config = parser.parse(configfilename)

    startcoord = Vec(*config["startcoord"])
    volshape = Vec(*config["volshape"])

    bounds = Bbox(startcoord, startcoord + volshape)

    iterator = tc.create_overlap_tasks(config["output"],
                                       config["baseseg"],
                                       config["storagestrs"][0],
                                       bounds=bounds,
                                       shape=config["chunkshape"],
                                       mip=config["voxelres"])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)
コード例 #12
0
ファイル: chunk_edges.py プロジェクト: torms3/Synaptor
def main(configfilename):

    config = parser.parse(configfilename)

    startcoord = Vec(*config["startcoord"])
    volshape = Vec(*config["volshape"])

    bounds = Bbox(startcoord, startcoord + volshape)

    iterator = tc.create_chunk_edges_tasks(
                   config["image"], config["tempoutput"],
                   config["baseseg"], storagestr=config["storagestrs"][0],
                   hashmax=config["nummergetasks"],
                   storagedir=config["storagestrs"][1],
                   bounds=bounds, chunkshape=config["chunkshape"],
                   patchsz=config["patchshape"],
                   resolution=config["voxelres"])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)
コード例 #13
0
ファイル: chunk_ccs.py プロジェクト: torms3/Synaptor
def main(configfilename):

    config = parser.parse(configfilename)

    startcoord = Vec(*config["startcoord"])
    volshape = Vec(*config["volshape"])

    bounds = Bbox(startcoord, startcoord + volshape)

    iterator = tc.create_connected_component_tasks(
        config["descriptor"],
        config["tempoutput"],
        storagestr=config["storagestrs"][0],
        storagedir=config["storagestrs"][1],
        cc_thresh=config["ccthresh"],
        sz_thresh=config["dustthresh"],
        bounds=bounds,
        shape=config["chunkshape"],
        mip=config["voxelres"],
        hashmax=config["nummergetasks"])

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)
コード例 #14
0
ファイル: fixsegids.py プロジェクト: seung-lab/Synaptor
def main(configfilename, tagfilename=None):

    config = parser.parse(configfilename)

    if tagfilename is not None:
        bboxes = io.utils.read_bbox_tag_filename(tagfilename)
    else:
        bboxes = None

    iterator = tc.create_fixsegids_tasks(
        storagestr=config["storagestrs"][0],
        hashmax=config["nummergetasks"],
        volshape=config["volshape"],
        chunkshape=config["chunkshape"],
        startcoord=config["startcoord"],
        aggscratchpath=config["aggscratchpath"],
        aggchunksize=config["aggchunksize"],
        aggmaxmip=config["aggmaxmip"],
        aggstartcoord=config["startcoord"],
        bboxes=bboxes)

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)
コード例 #15
0
ファイル: chunk_ccs.py プロジェクト: seung-lab/Synaptor
def main(configfilename, tagfilename=None):

    config = parser.parse(configfilename)

    if tagfilename is not None:
        bboxes = io.utils.read_bbox_tag_filename(tagfilename)
    else:
        bboxes = None

    iterator = tc.create_connected_component_tasks(
                   config["descriptor"], config["tempoutput"],
                   storagestr=config["storagestrs"][0],
                   storagedir=config["storagestrs"][1],
                   ccthresh=config["ccthresh"],
                   szthresh=config["dustthresh"],
                   volshape=config["volshape"],
                   chunkshape=config["chunkshape"],
                   startcoord=config["startcoord"],
                   resolution=config["voxelres"],
                   hashmax=config["nummergetasks"],
                   bboxes=bboxes)

    tq = TaskQueue(config["queueurl"])
    tq.insert_all(iterator)