# OMRnotes.scripts.pre package

## Submodules

## OMRnotes.scripts.pre.morph module

class `OMRnotes.scripts.pre.morph.``Morph`

  Morfologicke a rle operace

  `deletelines`(img)

    Odstraneni linek pomoci morfologie s ctvercovym s.e.

  `eraser`(img, imgerase)

    Odecteni dvou obrazu

  `filterhor1`(img)

    Filtrace horizontalnich linek moorf otevrenim

  `filterhor2`(img)

    Filtrace malych useku horizontalnich linek pomoci RLE

  `filterhorver1`(img)

    Filtrace linek pomoci RLE

  `filterline2`(img, sf)

    Filtrace linek pomoci RLE

  `filterlines`(img)

    Filtrace linek not morf. operacemi

  `getheads`(img)

    Filtrace hlavicek not morf. operacemi

  `getlines`(img, imgerase)

    Ziskani linek s odstranenim malych komponent

  `morphology`(img, func, i, j)

    Univerzalni morfologicka funkce

  `structure1` = <gameracore.Image: offset_x = 0, offset_y = 0, ncols = 3, nrows = 1>
  `structure2` = <gameracore.Image: offset_x = 0, offset_y = 0, ncols = 5, nrows = 5>
  `structure3` = <gameracore.Image: offset_x = 0, offset_y = 0, ncols = 1, nrows = 3>
  `structure4` = <gameracore.Image: offset_x = 0, offset_y = 0, ncols = 13, nrows = 1>
  `structure5` = <gameracore.Image: offset_x = 0, offset_y = 0, ncols = 1, nrows = 13>

## OMRnotes.scripts.pre.staves module

`OMRnotes.scripts.pre.staves.``msrlinetracking`(img, num_lines=5, crossing_symbols=u'all', symbol_criterion=u'runlength', threshold=0)

  Musicstaves Linetracking

  lokalizace a odstraneni notovych linek

  num_lines = 5 (def)

  crossing_symbols = [u’all’(def),u’bars’,u’none’]

  symbol_criterion = [u’runlength’(def), u’secondchord’, u’mask’, u’skewedruns’, u’vectorfieldruns’]

  threshold = 0 (def)

  Nechte paratemtry staffspace_height and staffline_height nulove, pokud je nemate dopredu vypocitane. Kdyz jsou nulove jsou vypocitany automaticky

## Module contents