I have the following sample image:
I want to fill these triangles in the corners with white color. How could I detect them using OpenCV? Of course, in this particular sample, I can just lean on the gradient or brightness. Nevertheless, in the future images won't be such perfectly shaped, so I am thinking of some shape detection.
I heard that shaped can usually be detected with, for example, Hough transform. But I do not know what I should start with.
Contour detection in OpenCV does not help since it finds too many candidates. I tried to use approxPolyDP with size = 3, but there was also no result (there were no such objects found).
These triangles will always be triangles, but they do not need to touch bars every time. They always will be at the edges of the image. They share approximately the same area among them.
I would like to be able to detect triangles and collect points corresponding to these triangles in some container.

