Displaying 1 result from an estimated 1 matches for "edgemap".
Did you mean:
edgemax
2012 Dec 14
0
[LLVMdev] issue with profiling in LLVM 3.1
...nce was about 25x!). I am copying out the exact functions below.
The relevant parts are in bold font:
*------------*
*SOURCE :
------------*
//accumulate error at a given edge sample point (round to nearest
integral point)
*inline void SampleEdgePoint(float xf, float yf, const FlexImage8u
&EdgeMap, int &error, int &samplePoints)
{
int x = int(xf + 0.5f), y = int(yf + 0.5f);
if((x >= 0) && (x < EdgeMap.Width()) && (y >= 0) && (y <
EdgeMap.Height())) //check image bounds
{ int e = 255 -
EdgeMap(x,y);...