fun.imagej.segmentation.fast-segmentation

add-feature-map-fn

(add-feature-map-fn seg feature-name feature-fn)
Add a feature map generator to a segmentation. These are stored as maps

clear-cache

(clear-cache seg)
Clear the cache we created for our featuremaps

create-segmentation-meta

(create-segmentation-meta)(create-segmentation-meta seg)
Create the metadata for a fast segmentation

generate-dataset

(generate-dataset seg input-img)
Generate a dataset for training

generate-position

(generate-position seg label)
Generate a candidate sample position.
We should probably give a way of providing a custom dimension ordering.

generate-sample-points

(generate-sample-points seg label)
Generate the positive and negative sample points given a segmentation and the target labeling.
Positive samples are drawn from the labeling, while negative samples come from regions outside the labeling.

generate-sample-points-negative-label

(generate-sample-points-negative-label seg label negative-label)
Generate the positive and negative sample points given a segmentation and the target labeling.
Positive samples are drawn from the labeling, while negative samples come from regions outside the labeling.

generate-sample-points-negative-labels

(generate-sample-points-negative-labels seg label negative-labels)
Generate the positive and negative sample points given a segmentation and the target labeling.
Positive samples are drawn from the labeling, while negative samples come from regions outside the labeling.

save-segmentation-config

(save-segmentation-config seg filename)
Save a clean version of the segmentation configuration.

segment-image

(segment-image seg to-segment)
Use a solved segmentation and an input image to segment an input.

solve-segmentation

(solve-segmentation seg)
Solve the segmentation for fully populated metadata.