Olena/Icdar2013Score

From LRDE

ICDAR2013 Competition on Music Scores (from binary images)


Forewords

This page presents a method to remove staffs from music score images; it has been submitted to this contest. The method is some kind of "exercise in style" since we have chosen to exclusively rely on mathematical morphology operators. This is thus a filtering-only solution.


Input Image

Error creating thumbnail: Unable to save thumbnail to destination


Step 1

A permissive hit-or-miss with an horizontal line pattern as structuring element extracts some horizontal chunks from the input image:

Error creating thumbnail: Unable to save thumbnail to destination


Step 2

An horizontal median cleans up the result of the first filter:

Error creating thumbnail: Unable to save thumbnail to destination


Step 3

With an horizontal neighborhood, a reconstruction by dilation of the previous image within the input image extends the connected components:

Error creating thumbnail: Unable to save thumbnail to destination


Step 4

A closing with a rectangular structuring element gives a binary mask:

Error creating thumbnail: Unable to save thumbnail to destination


The contours of this mask are here displayed over the input image (one can see that the mask pretty well fits with the staff lines):

Error creating thumbnail: Unable to save thumbnail to destination


Step 5

A vertical median applied inside the largest components of this mask removes the staff lines:

Error creating thumbnail: Unable to save thumbnail to destination