#include <cstdio>
#include <math.h>
int main(int argc, char *argv[])
{
    try {
        
        af::Window myWindow(512, 512, 
"Histogram example using ArrayFire");
         float freq_max = max<float>(hist_out);
            myWindow.
hist(hist_out, 0, 255);
        }
    }
        fprintf(stderr, 
"%s\n", e.
what());
        throw;
    }
    return 0;
}