code wiki / (root) / nx_photogram_hbench.nx

nx_photogram_hbench.nx

buildroot/runtime/nx_photogram_hbench.nx

7990 B230 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind bench
docsdependenciesstructsconstsfunctions

about

nx_photogram_hbench.nx -- run the Nishi front end on a REAL photograph pair and emit its matches. This organ deliberately does NOT score itself. It reads two images, detects/describes/matches, and prints the matched coordinate pairs. The ground-truth homography is never opened here and the correctness rule is never implemented here. A single external scorer grades this organ, OpenCV SIFT and OpenCV ORB from identical output formats, so all three are judged by exactly the same code against exactly the same ground truth. Scoring yourself with your own scorer is the oldest way to win a benchmark that means nothing. Usage: nx_photogram_hbench <img1.pgm|ppm> <img2.pgm|ppm> [maxkp] Output: one "M <x1> <y1> <x2> <y2>" line per match, then a "SUMMARY ..." line. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_photogram_front.nx nx_photogram_hbench.nx

imports: nx_photogram_front.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main hw hb_next_int hb_isspace hb_isdigit pf_init pf_load_conf sys_read pf_conf_key pf_init_angles e3_isqrt hb_load_pnm sys_read ↻ hb_next_int ↻ pf_pyramid pf_init ↻ pf_resize pf_detect pf_init ↻ pf_harris pf_pix pf_orient pf_init ↻ pf_pix ↻ pf_describe pf_init ↻ pf_smooth pf_pix ↻ pf_match pf_hamming pf_popcnt hn

structs

none

consts

14const HB_MAGIC_262144: i64 = 262144
16const HB_MAXBYTES: i64 = 8388608
17const HB_DEFAULT_KP: i64 = 500

functions

19func hw(s: *u8) -> i64
called by 1: main
26func hn(v: i64) -> i64
called by 1: main
43func hb_isdigit(c: i64) -> i64
called by 1: hb_next_int
48func hb_isspace(c: i64) -> i64
called by 1: hb_next_int
63func hb_next_int(buf: *u8, n: i64, pos: *i64) -> i64
98func hb_load_pnm(path: *u8, gray: *u8, wh: *i64) -> i64
called by 1: main calls 2: sys_readhb_next_int
150func main(argc: i64, argv: *i64) -> i64