Image Analyst: Segmentation (Extraction) of area between two red line

4 ビュー (過去 30 日間)
Chandru G
Chandru G 2018 年 12 月 7 日
コメント済み: Chandru G 2019 年 1 月 30 日
I 'm woriking on Segmentation of Historical documents, so far i have identified the text lines in the historical documents using seam carving method and result image is attached, i wnat to extract or segment those identified lines, which is saperated by red line.1_seams.jpg

回答 (1 件)

Image Analyst
Image Analyst 2018 年 12 月 7 日
Use poly2mask() to create a mask image. Then mask the image
% Mask the image using bsxfun() function to multiply the mask by each channel individually.
maskedRgbImage = bsxfun(@times, rgbImage, cast(mask, 'like', rgbImage));
  1 件のコメント
Chandru G
Chandru G 2019 年 1 月 30 日
i tried with poly2mask() and roipoly(), didn't get the desired output, please elobrate the above function and try explain with code sample pertain to my above image..tq

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by