Hello,
i read via MicroMager Core succseedfull images in Graymode – But the device give me an 32bit RGBA Image that would not
display with function imshow()
import mmcorej.*mmc = CMMCore;mmc.unloadAllDevices();mmc.loadSystemConfiguration ('C:\Program Files\Micro-Manager-2.0gamma\DijSDKcameraMgr.cfg');mmc.prepareSequenceAcquisition('DijSDKcamera');mmc.startContinuousSequenceAcquisition(0);imgRaw = mmc.getLastImage(); %mmc.snapImage(); %img = mmc.getImage();
pixelType = 'uint8';%8BIT GRAY default
if depth == 4 pixelType = 'uint32';%32BIT RGBA can't display img as 32BIT RGBA only 16Bit RGB is possible ?
elseif depth == 2 pixelType = 'uint16';%16BIT RGB not supportet by Micromanger normaly 32bit or 8bit
end img = typecast(imgRaw,pixelType);img = reshape(img, [width, height]);img = transpose(img);cla reset; imshow(img);mmc.unloadAllDevices(); %complettly destruct MMCore
How i can convert tzhe image correctly ? The Funktion image(img) Display an point cloud of image, but not in real colors given from map…
thx for any suggestions
Karsten (www.FlexxVision.de)
Best Answer