distance_transform.md 1.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
# Distance transform

<img src='https://g.gravizo.com/svg?
 digraph G {
        shift [fontcolor=white,color=white];
        "binary image" -> "distance transform" -> "distance map";
	"distance map" -> "values are distances";
}
'/>

## Activity: Explore distance transform 

- Open image: xy_8bit_binary__two_objects.tif
- Learn:
	- It matters what is foreground and what is background.
	- The image data type limits the possible distance values.
	- There is a difference between calibrated vs. pixel-based distance transforms.


## Actvity: Use distance map for automated distance measurements

- Open reference object image: xy_8bit_binary__single_object.tif
- Compute distance map 
- Open label image: xy_8bit_labels__two_spots.tif
- Measure "intensity" of label image objects in distance map 
	- intensity is distance

## Activity: Use distance map for automated region selection

- Open reference object image: xy_8bit_binary__single_object.tif
- Compute distance map
- Threshold distance map to select regions
 
### Formative Assessment

TODO

### Learn more

TODO