MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / digZoom

Function digZoom

examples/image_processing/image_editing.cpp:56–59  ·  view source on GitHub ↗

* x,y - starting position of zoom * width, height - dimensions of the rectangle to where we have to zoom in * */

Source from the content-addressed store, hash-verified

54 * width, height - dimensions of the rectangle to where we have to zoom in
55 * */
56array digZoom(const array &in, int x, int y, int width, int height) {
57 array cropped = in(seq(x, width - 1), seq(y, height - 1), span);
58 return resize(cropped, (unsigned)in.dims(0), (unsigned)in.dims(1));
59}
60
61/**
62 * a - foregound image

Callers 1

mainFunction · 0.85

Calls 3

seqClass · 0.85
resizeFunction · 0.50
dimsMethod · 0.45

Tested by

no test coverage detected