フィルターのクリア

A small question about the function -- insertObjectAnnotation.

3 ビュー (過去 30 日間)
Donghui  Sun
Donghui Sun 2013 年 8 月 30 日
回答済み: Dima Lisin 2013 年 12 月 25 日
The funtion insertObjectAnnotation can be used to insert some annotation and output a RGB image. The usage of this function is not hard. However, the output image is almost white.
The original image and annotated image are shown in http://t1.qpic.cn/mblogpic/4f0c4b6023e0068989ba/460.jpg. The original image, I,is full-disk solar image with the size 256-by- 256 and the intensity vary from 0 to 4726.
Some code:
rgb = insertObjectAnnotation(I, 'rectangle', bbox, 'FI');
figure,subplot(1,2,1),imshow(I,[]),title('original image')
subplot(1,2,2),imshow(rgb,[]),title('Insert Annotation')
bbox is a 30-by-4 matrix.
Why the result is so strange.
  2 件のコメント
Jan
Jan 2013 年 8 月 30 日
Please define "strange" exactly. How do you obtain "the output image"? What is an intensity of -4? What is "I"? Is it an indexed image and the troubles come from an implicit conversion to a double RGB image? The shape of the sun differs between the both pictures. Is this expected?
Donghui  Sun
Donghui Sun 2013 年 8 月 30 日
Sorry for my vague expression.

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

回答 (1 件)

Dima Lisin
Dima Lisin 2013 年 12 月 25 日
What is the data type of your input image? Try converting the image to a double and rescaling it to the range [0,1] before calling insertObjectAnnotation. im2double should do that for you.

カテゴリ

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