How to create empty XYZ image matrix
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Simon Kirkman
am 3 Aug. 2020
Beantwortet: Constantino Carlos Reyes-Aldasoro
am 3 Aug. 2020
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?
Antworten (1)
Constantino Carlos Reyes-Aldasoro
am 3 Aug. 2020
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!