Posts by Railane Passos • 81 points
2 posts
-
4
votes2
answers253
viewsQ: Is it OK to use a switch inside a for?
Came to me a question related to the use of a switch within a for. I saw that it works for my purpose but this is correct to do in the world of programming? There is a better way to get the result…
-
3
votes1
answer3056
viewsQ: Image editing using Opencv with no ready-made functions
I have the following picture shown below and I need to turn it into gray and then binarize it. I use the following code to show it on the screen cv::Mat img = cv::imread("lena.jpg");// Lê a imagem…