Re: A "slanted edge" analysis program
- From: "Lorenzo J. Lucchini" <ljlbox@xxxxxxxxxx>
- Date: Wed, 28 Sep 2005 17:11:24 +0200
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 .
- References:
- A "slanted edge" analysis program
- From: Lorenzo J. Lucchini
- Re: A "slanted edge" analysis program
- From: Lorenzo J. Lucchini
- Re: A "slanted edge" analysis program
- From: Bart van der Wolf
- Re: A "slanted edge" analysis program
- From: Lorenzo J. Lucchini
- Re: A "slanted edge" analysis program
- From: Bart van der Wolf
- Re: A "slanted edge" analysis program
- From: Lorenzo J. Lucchini
- A "slanted edge" analysis program
- Prev by Date: Re: A "slanted edge" analysis program
- Next by Date: Re: A "slanted edge" analysis program
- Previous by thread: Re: A "slanted edge" analysis program
- Next by thread: Re: A "slanted edge" analysis program
- Index(es):
Relevant Pages
|