필터 지우기
필터 지우기

How to save an image in this situation quickly without using 'saveas' and 'insertShape'?

조회 수: 2 (최근 30일)
Tong Wang
Tong Wang 2018년 7월 21일
댓글: DGM 2023년 9월 12일
I want to generate an image like this. Initially i just have an processed image, then i need to plot mask (the blue one) over the image and save it, by using imshow diplay the image and then plot lines over it, i do get the result.
The problem is, if i use imshow and then plot mask over image, for exporting i must use 'saveas' or 'print', but this is a disaster for lots of high resolution images, it will be exdremely slow.
For this reason i tried the 'insertShape', this function adds lines directly in image matrix, then using 'imwrite' to save image will be much more quicker than 'saveas' or 'print', but here is the problem! you can see 'insertShape' produces wrong and incomplete lines (inside the yellow circle), and this is more serious when i process high resolution image.
So is there a third way to quickly export image with masks? Thanks a lot
  댓글 수: 4
Walter Roberson
Walter Roberson 2018년 8월 7일
Using a large line width creates problems with the caps at every turn because no curvature or bezelling is applied.
DGM
DGM 2023년 9월 12일
This is the same problem as the earlier thread:
Given that this problem only occurs for certain vertex lists, and only seems to occur when multiple polygons are given in a single call to insertShape(), then I would not call this expected behavior.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by