1 | initial version |
the k-means clustering will only give you grayscale bands. that operation is not helpful here. canny makes no sense either.
now I can think of two ways. to handle this. if the orientation label is clearly more dense than the imaged tissue, you can identify the label with a high brightness threshold. then apply some morphological dilate and erase.
if it isn't clearly denser/brighter (as is the case in your picture... there's a spot in the tissue that rivals the label), you'll have to go the contours/components way:
this presupposes that your noise (the orientation labels) aren't near the imaged tissue. if they are, you'd have to identify them some other way and then erase them using inpainting.
2 | No.2 Revision |
the k-means clustering will only give you grayscale bands. that operation is not helpful here. canny makes no sense either.
now I can think of two ways. ways to handle this. if the orientation label is clearly more dense than the imaged tissue, you can identify the label with a high brightness threshold. then apply some morphological dilate and erase.
if it isn't clearly denser/brighter (as is the case in your picture... there's a spot in the tissue that rivals the label), you'll have to go the contours/components way:
this presupposes that your noise (the orientation labels) aren't near the imaged tissue. if they are, you'd have to identify them some other way and then erase them using inpainting.
3 | No.3 Revision |
the k-means clustering will only give you grayscale bands. that operation is not helpful here. canny makes no sense either.
now I can think of two ways to handle this. if the orientation label is clearly more dense than the imaged tissue, you can identify the label with a high brightness threshold. then apply some morphological dilate and erase.
if your orientation label is not clearly denser/brighter than the imaged tissue (there's a spot in the tissue that rivals the label).
since it isn't clearly denser/brighter (as is the case in your picture... there's a spot in the tissue that rivals the label), denser/brighter, you'll have to go the contours/components way:
this presupposes that your noise (the orientation labels) aren't near the imaged tissue. if they are, you'd have to identify them some other way and then erase them using inpainting.
your label also has some kind of faint halo (you can make out a rectangular carrier for the text), so that's an issue as well.
4 | No.4 Revision |
the k-means clustering will only give you grayscale bands. that operation is not helpful here. canny makes no sense either.
now I can think of two ways to handle this. if the orientation label is clearly more dense than the imaged tissue, you can identify the label with a high brightness threshold. then apply some morphological dilate and erase.then erase that area (img[mask] = 0
).
your orientation label is not clearly denser/brighter than the imaged tissue (there's a spot in the tissue that rivals the label).
since it isn't clearly denser/brighter, you'll have to go the contours/components way:
this presupposes that your noise (the orientation labels) aren't near the imaged tissue. if they are, you'd have to identify them some other way and then erase them using inpainting.
your label also has some kind of faint halo (you can make out a rectangular carrier for the text), so that's an issue as well.
5 | No.5 Revision |
the k-means clustering will only give you grayscale bands. that operation is not helpful here. canny makes no sense either.
now I can think of two ways to handle this. if the orientation label is clearly more dense than the imaged tissue, you can identify the label with a high brightness threshold. then apply some morphological dilate and then erase that area (img[mask] = 0
).
your orientation label is not clearly denser/brighter than the imaged tissue (there's a spot in the tissue that rivals the label).
since it isn't clearly denser/brighter, you'll have to go the contours/components way:
this presupposes that your noise (the orientation labels) aren't near the imaged tissue. if they are, you'd have to identify them some other way and then erase them using inpainting.now you can erase just the label, leaving tissue and background, or select the tissue and erase everything else.
your label also has some kind of faint halo (you can make out a rectangular carrier for the text), so that's an issue as well.
all this presupposes that your noise (the orientation labels) aren't near the imaged tissue. if they are, you'd have to identify them some other way and then erase them using inpainting.