What is this cdata stands for?

53 visualizaciones (últimos 30 días)
Stelios Fanourakis
Stelios Fanourakis el 24 de Mayo de 2018
Comentada: Walter Roberson el 24 de Mayo de 2018
I see to some of the functions the cdata as follows:
model.cdata = [];
model.alpha = [];
model.xdata = [];
model.ydata = [];
model.zdata = [];
model.parent = [];
model.handles = [];
model.texture = '3D';
tag = tempname;
model.tag = ['vol3d_' tag(end-11:end)];
What is this Cdata means? And generally, what this . [dot] and the parameter that follows mean?

Respuestas (2)

Ameer Hamza
Ameer Hamza el 24 de Mayo de 2018
Dot notation is used to access the properties of a class in MATLAB. For more details refer here: https://www.mathworks.com/help/stateflow/ug/identify-data-using-dot-notation.html. The CData property usually represents the image data, i.e. the RGB value of pixels. For more information refer here: https://www.mathworks.com/help/matlab/ref/matlab.graphics.primitive.image-properties.html#d119e542055.
  3 comentarios
Ameer Hamza
Ameer Hamza el 24 de Mayo de 2018
Not the metadata of the DICOM image. But it will contain the grayscale values of the DICOM image.
Walter Roberson
Walter Roberson el 24 de Mayo de 2018
The code appears to be initializing a data structure that will later be filled out with actual data. In that actual data, cdata will likely be image data, perhaps from dicomread() . As Ameer indicates, it is unlikely that anyone would use cdata as the name of a field to store DICOM metadata.

Iniciar sesión para comentar.


Jan
Jan el 24 de Mayo de 2018
Either . accesses the properties of class objects, or it is used to address fields of a struct. See doc struct .
As soon as you show us, how "model" is defined, it is immediately clear, which kind of dot notation is used here.
The name "cdata" can be chosen freely. Together with the other names it seems, like model is a GUI element. Then see Ameer's answers.

Categorías

Más información sobre DICOM Format en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by