47 HLine(
int a,
int b,
int c) : x1(a), x2(b), y(c) {}
126 QList<QList<OmrChord>>&
chords() {
return _chords; }
127 const QList<QList<OmrChord>>&
chords()
const {
return _chords; }
128 int x1()
const {
return _x1; }
129 int x2()
const {
return _x2; }
147 OmrStaff(
int x,
int y,
int w,
int h) : QRect(x, y, w, h) {}
148 QList<OmrNote*>&
notes() {
return _notes; }
149 const QList<OmrNote*>&
notes()
const {
return _notes; }
165 void searchNotes(QList<OmrNote*>*,
int x1,
int x2,
int y,
int line);
170 const QList<OmrStaff>&
staves()
const {
return _staves; }
171 QList<OmrStaff>&
staves() {
return _staves; }
172 QList<OmrMeasure>&
measures() {
return _measures; }
173 const QList<OmrMeasure>&
measures()
const {
return _measures; }
177 void searchSysBarLines();
178 float searchBarLinesvar(
int n_staff,
int **note_labels);
180 void searchNotes(
int *note_labels,
int ran);
206 double skew(
const QRect&);
208 void getStaffLines();
210 double xproject2(
int y);
211 int xproject(
const uint* p,
int wl);
212 void radonTransform(ulong* projection,
int w,
int n,
const QRect&);
216 OmrPattern searchPattern(
const std::vector<Pattern*>& pl,
int y,
int x1,
int x2);
221 const QImage&
image()
const {
return _image; }
224 int width()
const {
return _image.width(); }
225 int height()
const {
return _image.height(); }
226 const uint*
scanLine(
int y)
const {
return (
const uint*)_image.scanLine(y); }
227 const uint*
bits()
const {
return (
const uint*)_image.bits(); }
230 const QList<QLine>&
sl() {
return lines; }
231 const QList<HLine>&
l() {
return slines; }
233 const QList<QRect>&
slices()
const {
return _slices; }
235 double ratio()
const {
return _ratio;}
237 double systemDistance()
const;
238 void readHeader(
Score* score);
240 float searchBarLines(
int start_staff,
int end_staff);
241 void identifySystems();
243 const QList<OmrSystem>&
systems()
const {
return _systems; }
250 bool dot(
int x,
int y)
const;
251 bool isBlack(
int x,
int y)
const;
OmrMeasure(int x1, int x2)
Definition: omrpage.h:125
void setKeySig(const OmrKeySig &s)
Definition: omrpage.h:153
Definition: durationtype.h:28
const uint * bits() const
Definition: omrpage.h:227
QList< QLine > barLines
Definition: omrpage.h:175
Definition: omrpage.h:139
OmrStaff(const QRect &r)
Definition: omrpage.h:146
OmrClef()
Definition: omrpage.h:67
OmrPage * _page
Definition: omrpage.h:161
QList< OmrSystem > _systems
Definition: omrpage.h:201
QList< OmrNote * > _notes
Definition: omrpage.h:140
void setTimesig(OmrTimesig *ts)
Definition: omrpage.h:131
OmrStaff()
Definition: omrpage.h:145
QList< QList< OmrChord > > _chords
Definition: omrpage.h:120
const QList< OmrSystem > & systems() const
Definition: omrpage.h:243
HLine(int a, int b, int c)
Definition: omrpage.h:47
HLine()
Definition: omrpage.h:46
double ratio() const
Definition: omrpage.h:235
Definition: omrpage.h:118
SymId
Definition: sym.h:30
const QList< QList< OmrChord > > & chords() const
Definition: omrpage.h:127
OmrTimesig * timesig() const
Definition: omrpage.h:130
const QList< HLine > & l()
Definition: omrpage.h:231
int x1
Definition: omrpage.h:45
OmrMeasure()
Definition: omrpage.h:124
OmrPattern()
Definition: omrpage.h:56
OmrClef clef() const
Definition: omrpage.h:150
const QList< OmrStaff > & staves() const
Definition: omrpage.h:170
OmrClef(const OmrPattern &p)
Definition: omrpage.h:68
Definition of classes Clef.
int cropT
Definition: omrpage.h:194
double spatium() const
Definition: omrpage.h:234
const QList< QRect > & slices() const
Definition: omrpage.h:233
int x1() const
Definition: omrpage.h:128
OmrSystem(OmrPage *p)
Definition: omrpage.h:168
double _ratio
Definition: omrpage.h:191
int cropR
Definition: omrpage.h:193
Fraction timesig
Definition: omrpage.h:100
int y
Definition: omrpage.h:45
Omr * _omr
Definition: omrpage.h:188
OmrKeySig _keySig
Definition: omrpage.h:142
const QList< QLine > & sl()
Definition: omrpage.h:230
double _spatium
Definition: omrpage.h:190
int wordsPerLine() const
Definition: omrpage.h:228
QList< OmrStaff > & staves()
Definition: omrpage.h:171
QList< QList< OmrChord > > & chords()
Definition: omrpage.h:126
QList< OmrMeasure > & measures()
Definition: omrpage.h:172
int width() const
Definition: omrpage.h:224
OmrTimesig()
Definition: omrpage.h:98
OmrStaff(int x, int y, int w, int h)
Definition: omrpage.h:147
QList< QRect > _slices
Definition: omrpage.h:196
OmrKeySig keySig() const
Definition: omrpage.h:152
QList< OmrStaff > staves
Definition: omrpage.h:197
SymId sym
Definition: omrpage.h:57
Definition: aeolus.cpp:26
OmrKeySig(const QRect &r)
Definition: omrpage.h:110
QImage & image()
Definition: omrpage.h:222
OmrSystem * system(int idx)
Definition: omrpage.h:245
QList< OmrMeasure > _measures
Definition: omrpage.h:163
OmrKeySig()
Definition: omrpage.h:109
double prob
Definition: omrpage.h:58
Definition: xmlwriter.h:26
int line
Definition: omrpage.h:79
OmrClef _clef
Definition: omrpage.h:141
QList< QLine > lines
Definition: omrpage.h:200
QList< HLine > slines
Definition: omrpage.h:198
Definition: xmlreader.h:28
TDuration duration
Definition: omrpage.h:88
int _x2
Definition: omrpage.h:119
QImage _image
Definition: omrpage.h:189
QList< OmrNote * > notes
Definition: omrpage.h:89
void setClef(const OmrClef &c)
Definition: omrpage.h:151
ClefType
Definition: clef.h:37
Definition: fraction.h:46
QList< OmrStaff > _staves
Definition: omrpage.h:162
const QList< OmrNote * > & notes() const
Definition: omrpage.h:149
int x2
Definition: omrpage.h:45
const QImage & image() const
Definition: omrpage.h:221
Definition: omrpage.h:107
const uint * scanLine(int y) const
Definition: omrpage.h:226
OmrTimesig(const QRect &r)
Definition: omrpage.h:99
void setImage(const QImage &i)
Definition: omrpage.h:220
Definition: omrpage.h:187
QList< OmrNote * > & notes()
Definition: omrpage.h:148
int x2() const
Definition: omrpage.h:129
int height() const
Definition: omrpage.h:225
const QList< OmrMeasure > & measures() const
Definition: omrpage.h:173
Definition: omrpage.h:160