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

Function embed_image

yolo_detector/darknet_opt/src/image.c:397–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void embed_image(image source, image dest, int dx, int dy)
398{
399 int x,y,k;
400 for(k = 0; k < source.c; ++k){
401 for(y = 0; y < source.h; ++y){
402 for(x = 0; x < source.w; ++x){
403 float val = get_pixel(source, x,y,k);
404 set_pixel(dest, dx+x, dy+y, k, val);
405 }
406 }
407 }
408}
409
410image collapse_image_layers(image source, int border)
411{

Callers 7

tile_imagesFunction · 0.85
draw_detectionsFunction · 0.85
collapse_image_layersFunction · 0.85
letterbox_image_intoFunction · 0.85
letterbox_imageFunction · 0.85
collapse_images_vertFunction · 0.85
collapse_images_horzFunction · 0.85

Calls 2

get_pixelFunction · 0.85
set_pixelFunction · 0.85

Tested by

no test coverage detected