I have black and white picture which looks something like that.
0000000
0111111
0011111
0001111
0000000
I am looking for a method such that i can frame the element 1.
I've spend a lot time trying to figure a smart way to do so, but all them seem too complex..
It has to end up looking like this
*******
*111111
**11111
0**1111
00*****