Chroma Keyer

조회 수: 6 (최근 30일)
David Robinson
David Robinson 2011년 1월 29일
Hi All
I am roughing out the code for a basic keyer which will eventually go into Nuke. At the moment I have separated an image into the three channels. What I now want to do is to place the data into a 3d scatter plot before I can go further.
When I try to do this I am getting an error saying that the vector lengths are not the same.
here are the three variables containing the RGB data.
r 389x512 1593344 double
g 389x512 1593344 double
b 389x512 1593344 double
All values within are normalised between 0 and 1.
As you can see they are equal in size, but no joy with scatter3.
Any help with this would be ultra cool.
Thank you in advance
David
  댓글 수: 1
Oleg Komarov
Oleg Komarov 2011년 1월 29일
Can you post the code you use to call scatter3?

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

채택된 답변

Andrew Newell
Andrew Newell 2011년 1월 29일
The inputs to scatter3 need to be vectors, not matrices. Try this:
scatter3(r(:),g(:),b(:))

추가 답변 (1개)

David Robinson
David Robinson 2011년 1월 29일
Hi Andrew
Thats brilliant. Thank you very much.
on with the task
David

카테고리

Help CenterFile Exchange에서 Interactions, Camera Views, and Lighting에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by