[brlcad-tracker] [ brlcad-Patches-3528693 ] introduce off-by-val to bench/pixcmp.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: SourceForge.net <no...@so...> - 2012-05-21 20:25:56
|
Patches item #3528693, was opened at 2012-05-21 13:25 Message generated for change (Tracker Item Submitted) made by stattrav You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640804&aid=3528693&group_id=105292 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Benchmark & Performance Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Suryajith Chillara (stattrav) Assigned to: Nobody/Anonymous (nobody) Summary: introduce off-by-val to bench/pixcmp.c Initial Comment: My patch to bench/pixcmp.c which adds the option of adding the parameter so that one could check the number of pixels which are "off by a certain value". The default value is still 1. I've tested for a few cases and the benchmark run went through. Usage is as follows: brlcad-build → bin/pixcmp -d4 ../brlcad/pix/moss.pix ../brlcad/pix/moss_new.pix pixcmp pixels: 262140 matching, 4 off by 4, 0 off by many brlcad-build → bin/pixcmp -d2 ../brlcad/pix/moss.pix ../brlcad/pix/moss.pix pixcmp pixels: 262144 matching, 0 off by 2, 0 off by many brlcad-build → bin/pixcmp -d2 ../brlcad/pix/moss.pix ../brlcad/pix/moss_new.pix pixcmp pixels: 262140 matching, 4 off by 2, 0 off by many brlcad-build → bin/pixcmp -d1 ../brlcad/pix/moss.pix ../brlcad/pix/moss_new.pix pixcmp pixels: 262140 matching, 2 off by 1, 2 off by many brlcad-build → bin/pixcmp ../brlcad/pix/moss.pix ../brlcad/pix/moss_new.pix pixcmp pixels: 262140 matching, 2 off by 1, 2 off by many ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640804&aid=3528693&group_id=105292 |