Hi to all,
I have a multiD image, which has Axes.X,Y,Z and 3xchannel. I am using the AXES.Channel to keep the x,y and z components of a vector quantity (magnetization).
I am defining the dataset with:
D = datasetService.create(new FloatType(), dims, info[0], axis);
final LinearAxis xAxes = new DefaultLinearAxis(Axes.X, info[1], steps[0]);
final LinearAxis yAxes = new DefaultLinearAxis(Axes.Y, info[1], steps[1]);
final LinearAxis zAxes = new DefaultLinearAxis(Axes.Z, info[1], steps[2]);
final LinearAxis cAxes = new DefaultLinearAxis(Axes.CHANNEL, "vector", 3.0);
final CalibratedAxis[] caxis = { xAxes, yAxes, zAxes, cAxes};
D.setAxes(caxis);
Channel related questions:
- How can I label each channel, i.e. the CHANNEL 0 should be labelled “Mag X”, and so on.
- I need to pass a subset of the dataset to another routine, say Axes.CHANNEL=0. How can I select a subset? Or should I send the full dataset anyway and select by axes?
- I would like to make a composite view, like using the “Image->Color->Make Composite” using imglib2. But I cannot understand the CompositeXYProyector class. Can anyone give me a snippet code for this?