|
If the values are intensities, you need a 2D matrix
im2D
which will satisfy:
im2D(x,y) = value;
But if you are going to use color, then you could have a 3D matrix satisfying:
im3D(x,y,1) = redValue;
im3D(x,y,2) = greenValue;
im3D(x,y,3) = blueValue;
where value = [redValue,greenValue,blueValue];
"Dominic " <dom_awf@hotmail.com> wrote in message <gv6oo2$6t$1@fred.mathworks.com>...
> Hi,
>
> I have a struct with struct.x, struct.y and struct.value and want to create an image, where (struct.x,struct.y) represent the pixel and the value is interpreted as color or intensity in grey scale.
>
> Is it better to have an 3D Array or doesn't it matter. The size of the picture is usually 512x512.
>
> cheers,
> Dominic
|