Andrea Aime ha scritto: ... > Soc is already gone, we'd have to wait for next year. > As a quick measure of distance, we could do the following. For each > pixel, extract the R G B A components, make a difference, component > by component, against the expected value, and sum up the absolute > values of it. If the total sum on all the pixels exceeds a certain > soil, fail the test, and present a visual exemplar of the comparison.
Thinking a little more about this, we'd probably want to include one or more masks in the comparison. Within the masks, a certain degree of difference is tolerated, outside of them, none. Think rendering a diagonal line, we can tolerate difference in a small area around it to account for differences in how aliasing and pixel assignment for the diagonal representation are done, but we cannot tolerate any difference outside that area. With some image processing the mask could be computed automatically, take the sampler, grab the area at background color (that is not going to be used for any of the actual drawing), erode it, invert and you have the mask.... right? Cheers Andrea ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
