I am trying to define a binary matrix 512x512 with an inscribed circle centered in [0,0]. Nevertheless I am getting some troubles. Below is my current code. Could someone tell me where is my mistake? When I run nothing appears in console.
#include <iostream>
#include <vector>
int main()
{
int rows = 512;
int cols = 512;
int radius = 256;
int m, n;
std::vector<std::vector<float>> Circle(rows, std::vector<float>(cols, 0));
for (m = rows; m <= radius; m--) {
for (n = cols; n <= radius; n--) {
Circle[m][n] = 1;
std::cout << Circle[m][n]; //just to see if it is working
}
}
return 0;
}