フィルターのクリア

How to create empty XYZ image matrix

3 ビュー (過去 30 日間)
Simon Kirkman
Simon Kirkman 2020 年 8 月 3 日
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
Stephen23 2020 年 8 月 3 日
im = nan(r,c,3)

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

回答 (1 件)

Constantino Carlos Reyes-Aldasoro
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.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by