Please refer to the ''assignment_6_segmentation'' in the git repository:
[[https://gitlab.fel.cvut.cz/dzo/dzo-python-assignment-templates|https://gitlab.fel.cvut.cz/dzo/dzo-python-assignment-templates]]
and to [[./assignment_0_basics|intro]] for additional material for NumPy, git, and similar.
Please implement all required functions and submit your solution to the [[https://cw.felk.cvut.cz/brute|upload system]] as a ZIP file containing the file ''segmentation.py'' and ''segmentation.ipynb''. Do not include any directory structure (when the ZIP is uncompressed, the files will extract to the current working directory, as opposed to any subdirectories.)