[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: contour fill




After some real-world experimentation, it seems that these are the
correct statements:

> c0x = (pxy(0,c0off) - x(0)) / dx + 1 ;; Convert to scan cols & lines
> c0y = (pxy(1,c0off) - y(0)) / dy + 1

Note the "+ 1"'s.  I believe there is a goof in the documentation for
the POLYFILLV function which leads to an off-by-one discrepancy.  Or
else I don't understand it...

Craig

-- 
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------