#37 MaxEdge is not scaled

open
nobody
None
5
2009-08-27
2009-08-27
simon wood
No

It appears that MaxEdge is not scaled as the 'scale' of the decode is changed. MinEdge is scaled.
--
simon@bourne:~/libdmtx-svn$ grep -Hi 'dec->edgeM' *.c
dmtxdecode.c: dec->edgeMin = DmtxUndefined;
dmtxdecode.c: dec->edgeMax = DmtxUndefined;
dmtxdecode.c: dec->edgeMin = value;
dmtxdecode.c: dec->edgeMax = value;
dmtxdecode.c: return dec->edgeMin;
dmtxdecode.c: return dec->edgeMax;
dmtxregion.c: if(dec->edgeMax != DmtxUndefined) {
dmtxregion.c: maxDiagonal = (int)(1.23 * dec->edgeMax + 0.5); /* sqrt(5/4) + 10% */
dmtxregion.c: maxDiagonal = (int)(1.56 * dec->edgeMax + 0.5); /* sqrt(2) + 10% */
dmtxregion.c: if(dec->edgeMin != DmtxUndefined) {
dmtxregion.c: minArea = (dec->edgeMin * dec->edgeMin)/(scale * scale);
dmtxregion.c: minArea = (2 * dec->edgeMin * dec->edgeMin)/(scale * scale);
--

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks