Image pre-processing to make pixels in one straight line

2 ビュー (過去 30 日間)
SS
SS 2021 年 5 月 27 日
回答済み: KALYAN ACHARJYA 2021 年 5 月 27 日
Hi. Is there any image pre-propcessing technique to make the pixels align in a perferct staight line (please see the attached picture)? This sort of lines are resulting in error when I am applying the houghlines.
Thanks.

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 5 月 27 日
Yes, you can do that multiple ways
  1. Get the two highest-spaced white pixels in the image, column numbers (left column and right column), number of rows (if luckily the same row, no problem, otherwise average (round) between two different rows , Which will be almost the same)
  2. Morphological operation, get the indices of furthest distance white pixels (horizantal & Vertical) and fill the region with white pixels.
  3. Thinning Algorithm (see bwmorph)

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by