NEED HELP IMAGE PROCESSING QUESTIONS



how do I Perform the morphological opening and closing of f by k using
the upper-left pixel of k as the origin?
f:
2 3 0 4
1 3 5 7

k:
1 -1
2 3

.