Liste des Groupes | Revenir à cl c |
scott@slp53.sl.home (Scott Lurndal) writes:Tbe main intent was to help fir. That algorithm does tend to blow the stack though of course it depends on the image. However worst case is a pattern which is pixel wide line, e.g. a spiral or a maze or a series of alterante light and dark bands with a lirtel gaps at each end. And you achieve that by filling half the pixels. So foe a 100x100 image your worst case is 10,000 = 5,000 recursive calls, and the stack is blown.
David Brown <david.brown@hesbynett.no> writes:As someone with dyslexia I have never liked mocking remarks aboutOn 16/03/2024 12:33, Malcolm McLean wrote:>>And here's some code I wrote a while ago. Use that as a pattern. But not>
sure how well it works. Haven't used it for a long time.
>
https://github.com/MalcolmMcLean/binaryimagelibrary/blob/master/drawbinary.c
>
Your implementation is a mess, /vastly/ more difficult to prove correct
Malcolm can't even spell 'integer' correctly in that code blob :-).
spelling errors. Using "even" suggests that a superficial issue hints
at deeper problems. This is rarely the case.
However, I /would/ urge Malcolm to correct the spelling if Bresenham
since the intent was clearly to credit the discoverer. Also,
misspellings don't play well with library databases.
Certainly the intent of Fir's algorithm is easily discerned fromI have some reservations about the code, but he posted a link so there
his code. I can't say that about Malcolms.
is no indication that he wants a review of it.
Les messages affichés proviennent d'usenet.