Locating Pixels with Bresenham's line algorithm

  • Thread starter Thread starter armin11
  • Start date Start date
  • Tags Tags
    Algorithm Line
Click For Summary

Discussion Overview

The discussion revolves around the application of Bresenham's line algorithm to locate pixel positions for a line drawn from (0,0) to (-4,-8). Participants explore the feasibility of manually implementing the algorithm and seek assistance in doing so.

Discussion Character

  • Homework-related, Technical explanation, Debate/contested

Main Points Raised

  • One participant requests help locating pixels for a specific line using Bresenham's algorithm, indicating difficulty in finding a suitable method.
  • Another participant suggests using Google to find information on Bresenham's algorithm, implying that resources are readily available online.
  • A different participant expresses frustration at not being able to find a working algorithm despite extensive searching.
  • One participant questions whether the original request is a homework question and suggests that the forum may not be the appropriate place for such inquiries, while also asserting that the algorithm is not difficult to implement.

Areas of Agreement / Disagreement

The discussion reflects a lack of consensus, with some participants offering resources while others express frustration and seek direct assistance. There is contention regarding the appropriateness of the question for the forum.

Contextual Notes

Participants have not agreed on the suitability of the forum for homework questions, and there is uncertainty about the effectiveness of the suggested resources.

armin11
Messages
66
Reaction score
0
hi,I wanted to locate the pixels of a line drawn from (0,0) to (-4,-8) with bresenham's algorithm.I couldn't find a suitable algorithm for finding these pixel locations.Can anyone help me please?(the algorithm can be without computer and work by hand)
 
Technology news on Phys.org
I've searched so much and tried every algorithm they have written ,but they don't work.can anybody help please?
 
This smells like a homework question... In which case you're in the wrong forum.

Also not a hard one. The wiki has full (and rather simple) pseudocode for Bresenham's. Can you really not turn that into working code? That's all you need to do.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
29
Views
6K