MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / get_pixel

Function get_pixel

yolo_detector/darknet_opt/src/image.c:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47float get_pixel(image m, int x, int y, int c)
48{
49 assert(x < m.w && y < m.h && c < m.c);
50 return m.data[c*m.h*m.w + y*m.w + x];
51}
52float get_pixel_extend(image m, int x, int y, int c)
53{
54 if(x < 0 || x >= m.w || y < 0 || y >= m.h) return 0;

Callers 15

get_pixel_extendFunction · 0.85
composite_imageFunction · 0.85
draw_labelFunction · 0.85
ghost_imageFunction · 0.85
embed_imageFunction · 0.85
show_image_cvFunction · 0.85
save_image_jpgFunction · 0.85
crop_imageFunction · 0.85
yuv_to_rgbFunction · 0.85
rgb_to_yuvFunction · 0.85
rgb_to_hsvFunction · 0.85
hsv_to_rgbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected