I have a mortar image and it has some blackish pixels on the inside edges.
I need to make those blackish pixels colored same as the gray mortar color.
Look at the beginning of the image I have pointed out some blackish pixels on the edges
I have a mortar image and it has some blackish pixels on the inside edges.
I need to make those blackish pixels colored same as the gray mortar color.
Look at the beginning of the image I have pointed out some blackish pixels on the edges
Copyright © 2021 Jogjafile Inc.
one (time consuming) solution is to switch colors to grey of every pixel that passes the following condition:
pixel is part of a component that is connected to a mortar but is not part of the mortar rectangle, this can be achieved with modifications to "Connected-component labeling" algorithm.
one way to do this modification is:
hope this helps.