Exercise 9
Load an image and process it through the morphological operations.
- Load the file nabucodonosor.jpg and save it into the working directory.
- The goal is identifing the quarter notes in the sheet music, paying attention to:
- The binarization may be difficult due to the ununiform background (top hat transformation may help);
- Notes are disk-like shaped, but a better match can be obtained with an ad-hoc mask.
- Post-processing for refining the result can be required.
- Display the resulting images.
A possible solution: