#include <math.h>
#include <cstdio>
int main(int, char**) {
try {
af::Window myWindow(512, 512,
"Histogram example using ArrayFire");
array img =
loadImage(ASSETS_DIR
"/examples/images/arrow.jpg",
false);
myWindow.
hist(hist_out, 0, 255);
}
}
fprintf(stderr,
"%s\n", e.
what());
throw;
}
return 0;
}