On Sat, Jun 25, 2011 at 8:18 PM, Justin Deoliveira <[email protected]> wrote:
> Yeah the java osx (both 5 and 6) will produce images that look different from 
> those created on Linux. I ran into this before and he fix was to generate the 
> images again on Linux and just disable perceptual diff on my local machine.
>
> Only thing I could think of is to come up with a convention to store multiple 
> sets of images per os and perhaps have image assert support that to check 
> images specific to os.

I think we a number of options on the plate:
a) per version/architecture/vendor screenshots
b) mark a specific vendor and version as the "gold" one
c) enlarge the amount of differences perceptual diff allows
d) do b + c, have small allowance for errors on the "gold"
version/vendor, larger on others
e) change the way the assertions on these tests are done

For this case  e) would be a possibility. What you really want to check is
if there is any overlap between the text and the obstacles, regardless of how
the label placement is done.
Idea: paint the roads and obstacles in whilte, only the text in black,
then pain separately
the obstacles in another color, compare the two images, there should not be any
black pixel from labels in the area where the polygons are.
This could be achieved with JAI I think, binarize images, then perform a xor
and an extrema to see if any pixel was black in both images

If you want I can try to give e) a shot tomorrow?

As for other label oriented tests d) is the most attractive to me, we
could still
keep a single exemplar on the main supported JDK (Sun Java 5, soon to
become Sun Java 6) and get some info from the other OS only in case something
really dramatic happens in the image difference

Cheers
Andrea

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to