Remove blue or black colored lines in the Image

3 views (last 30 days)
Hi, In the attached plot, there a two colored lines (blue and black), I want to know the process of removing either blue or black colored lines. Is there any process using matlab for detecting and removing a specific colored lines.

Answers (1)

Priysha LNU
Priysha LNU on 28 Oct 2020
Hi,
For detection of specific colors, color-based segmentation using K-Means Clustering might help. Please refer the documentation link below for more information regarding this technique:
The provieded example shows how to segment colors in an automated fashion using the L*a*b color space and K-means clustering.
You can then perform a replacement operation to delete these lines and replace them with new pixel values.
DISCLAIMER: These are my own views and in no way depict those of MathWorks.

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!