Re: A "slanted edge" analysis program



Lorenzo J. Lucchini wrote:
  ESF[ (x*4) + (Distance(Pixel[x][y], Centroid[y]) % 4) ] +=
    Pixel[x][y];

Sorry again... this should be

ESF[ (x*4) + (Distance(Pixel[x][y], Centroid[y]) * 4) % 1) += ...

i.e. I should multiply the distance from the edge center by 4, and then take only the fractionary part.

This way, if the pixel is an integer number of pixels away from the edge center, it will end up in the "first bin";
if it's an integer number of pixels away, plus 0.25, it will end up in the "second bin", and so on.



I hope this time I've got it right :-)

by LjL
ljlbox@xxxxxxxxxx
.



Relevant Pages

  • Print resolution (was: Where are the BEST Point and Shoot Photos?)
    ... viewing conditions and at normal viewing distance of 22" needs only 156 ... PPI for excellent results, ... CRT high frequency response limits the contrast between adjacent pixels ... Measure your distance from the screen at this point. ...
    (rec.photo.digital)
  • Re: More on 720 vs 1080, plasma
    ... From the chart on viewing ... The sizes in the second chart seem very large to me, but if you want a home ... Most charts give you the distance where a normal eye can resolve the ... distance is to increase the distance somewhat so that the pixels blend ...
    (alt.tv.tech.hdtv)
  • Re: Where are the BEST Point and Shoot Photos ?
    ... viewing conditions and at normal viewing distance of 22" needs only 156 ... camera when viewed at a distance of two feet. ... You're looking at the details so much because your photography ... resolution, more clarity, more pixels, THEN someone will be able to see my ...
    (rec.photo.digital)
  • Re: MMX speedup for Floyd Steinberg error diffusion
    ... The edges are handled by ignoring all pixels which do not have the ... neighbours, the simplest way I found was to keep my x and y loops ... Well Initially the code used the standard distance matching algorithm ... the wrong palate colour (not the nearest according to the ...
    (comp.lang.asm.x86)
  • Re: How can I determine if a point is a given distance from a second point?
    ... I want to limit the points collected to a certain distance from other ... cell) and keep status of each cell in the array. ... 2D working space has 600 x 600 pixels size than you would need array ... too expensive in memory you can limit yourslef to comparing just delta ...
    (microsoft.public.dotnet.languages.csharp)