News for hackers. Stuff that matters.
Re:Is this the simplest (and most surprising) sorting algori... by DougBTX on Tuesday October 05, 2021 @09:44AM (#28759373)
Re:Is this the simplest (and most surprising) sorting algori... by Joker_vD on Tuesday October 05, 2021 @11:07AM (#28760486)
Huh. I thought it was obvious: e.g., the top-left corner of the screen is (0, 0), the bottom-right corner is (640, 480), and pixels are 1x1 — we take the coordinate of their top-left corner to be their coordinate, so the top-left pixel has coordinates (0, 0), and the bottom-right one has (639, 479), and obviously the coordinates of their centres are (0.5, 0.5) and (639.5, 479.5).

But apparently some people treated pixels as geometrical points without size?

Re:Is this the simplest (and most surprising) sorting algori... by foxfluff on Tuesday October 05, 2021 @01:19PM (#28762431)
It's normal in signal processing to treat samples (whether audio or image) as points. A lot of things stop making sense if you replace them with line segments and rectangles.