How to create empty XYZ image matrix
이전 댓글 표시
I am trying to do colour correction and I need an empty image in the XYZ colourspace to write values into. Is there a way to create a blank XYZ image to store the values?
댓글 수: 1
Stephen23
2020년 8월 3일
im = nan(r,c,3)
답변 (1개)
Constantino Carlos Reyes-Aldasoro
2020년 8월 3일
In addition to the above, you can also consider zeros
emptyMatrix = zeros(x,y,z);
And then you can add values into that matrix, or create one matrix for every channel that you want to use:
x_channel = zeros(rows,columns);
y_channel = zeros(rows,columns);
z_channel = zeros(rows,columns);
And if needed you can concatenate the matrices afterwards.
카테고리
도움말 센터 및 File Exchange에서 Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!