Hello Martin,
I understand that despite applying different colormaps, both images still appear similar.
This could be because the configuration exported from Volume Viewer app has colormap property also in the structure. Since, you are passing same configuration object to both the functions same colormap is applied for both the panels.
To resolve this issue, you can update the “Colormap” in the configuration object “config” to apply different colormap to the images. You can also use the “Colormap”’ parameter of “volshow()“ function to apply the maps directly.
Here are two approaches you can use to address the issue:
- Update the colormap in the configuration object by assigning the desired colormap. Then, pass the modified configuration object to the “volshow()” function.
config.Colormap = map;
2. Alternatively, you can use the Colormap parameter of the “volshow()” function to assign the desired colormap directly:
volshow(IM, config.config, 'Colormap', map, 'Parent', p1);
For more details, please refer to the following link:
I hope the approaches help you solving the issue.