How to export my masks in .jpg format with Image Labeler?

6 ビュー (過去 30 日間)
Louis Riglet
Louis Riglet 2019 年 12 月 12 日
回答済み: Shubh Sahu 2020 年 2 月 12 日
Hello,
How to export my masks in .jpg format with Image Labeler? Because actually, my mask is just a black figure with the .png format.
Louis.R

回答 (1 件)

Shubh Sahu
Shubh Sahu 2020 年 2 月 12 日
The PNG file's image value is composed as 0 1 2 and you cannot distinguish the image looks like the result from following command.
image = imread('XXX.png'); imshow(image) % Looks like a black image
To see labeled image, please use the following commands.
figure; image = imread('XXX.png'); imagesc(image); colorbar
OR
figure; [i, m] = imread('XXX.png'); imshow(i,m)
OR
figure; image = imread('XXX.png'); I = imadjust(image); imshow(I);
For your reference, here is a manual how to use the saved file through the exporting functionality as below.
- How Labeler Apps Store Exported Pixel Label

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by