Depth base Image Rendering

I extracted frames from yuv file but frames are black, and how can apply depth's yuv file on left camera yuv file?

4 件のコメント

Image Analyst
Image Analyst 2022 年 4 月 24 日
I have absolutely no idea what that means. Is yuv the color space? Where does the depth information come from? What does "apply depth's yuv file" mean? What is "depth" and how does it own a yuv file? Assuming depth did have a YUV file, what does it mean to "apply" it?
In general to see a floating point image you should use [], like
imshow(depthImage, []);
imshow(yImage, []);
imshow(yuv(:, :, 3), []);
DGM
DGM 2022 年 4 月 25 日
編集済み: DGM 2022 年 4 月 25 日
If you extracted frames from a YUV file and they're "black", then
  • What format is the file and how did you "extract" them?
  • Did you convert the YCbCr data to RGB? If so, how?
  • What is the class and data range of the output?
Sahar Akhtar
Sahar Akhtar 2022 年 4 月 26 日
I extracted frame from a yuv video image and formate is yuv I extracted by using this code and did not convert it in rgb is it necessary to convert in rgb and how to convert it?
for iframe=1:nframe
frame=read((iframe-1)*frame_length+1:iframe*frame_length);
yImage = reshape(frame(1:width*height), width, height)';
uImage = reshape(frame(width*height+1:1.25*width*height), width/2, height/2)';
vImage = reshape(frame(1.25*width*height+1:1.5*width*height), width/2, height/2)';
y(:,:,nframe)=yImage;
u(:,:,nframe)=uImage;
v(:,:,nframe)=vImage;
end
c = 0;
for iFrame = 25:10:120
c = c + 1;
subplot(5,4,c), imshow(y(:,:,iFrame));
title(['frame #', num2str(iFrame)]);
end
DGM
DGM 2022 年 4 月 26 日
It's not clear to me what read() method you're using. That doesn't doesn't look like it makes sense for the videoreader method by the same name. Since I don't know what read() is and you never said what the class or range of the data is, I really have nothing to go on.
If all you want to see is luma, you should be able to just use Y without converting to RGB. Since nobody knows what the class or range of the image data is, maybe you can at least get something to show up if you use an implicit displayrange parameter when calling imshow().
imshow(Y(:,:,frame),[])

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

製品

リリース

R2017b

質問済み:

2022 年 4 月 24 日

コメント済み:

DGM
2022 年 4 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by