lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Backend and non-backend (was Re: Stencil bounding box)


From: Han-Wen Nienhuys
Subject: Re: Backend and non-backend (was Re: Stencil bounding box)
Date: Tue, 02 May 2006 21:05:01 +0200
User-agent: Thunderbird 1.5 (X11/20060313)

David Feuer schreef:
One possibility:  Take all image elements (on a high level I guess
this would be grobs, on a low level it'd be stencil pieces).  Separate
them by type (stems here, noteheads there; rectangles here, glyphs
there), and within each type sort them by left edge of bounding box,
bottom edge of bounding box, width, and height.  Count to see if there
are the same number of elements of each type, then pair up
corresponding elements and compute the correlation coefficients or
similar statistics for the coordinates of pairs.


You cannot sort by coordinate: comparing floating point numbers is not stable, and the input will have lots of degenerate cases, due to all the alignments.



--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]