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

Olena-input.thumb.png


Step 1

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

Olena-step1.thumb.png


Step 2

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

Olena-step2.thumb.png


Step 3

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

Olena-step3.thumb.png


Step 4

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

Olena-step4.thumb.png


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):

Olena-step4over.thumb.png


Step 5

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

Olena-output.thumb.png