![]() |
PerkinElmer Informatics Support Forum | ![]() |
Topic Title: How to render image channels as color image Topic Summary: Created On: 5/4/2015 5:26 AM Status Post and Reply |
Linear : Threading : Single : Branch |
![]()
|
![]() |
|
The microscopy images are gray scale representations of individual channels. For visual inspection It is often desirable to mix the channels as a single color image. The procedures servicing web based user interface are quite suitable for this task. Although it is possible to tune "manually" it is recommendable to let the automatc settings to be applied. Here is a code sample that works for Acapella version >= 3.1 As a preparatory step one needs to decide which colors are used. The colors should be arranged into a vector: colors=vec("red", "#00ff00"); // Let us create sample images a1_0001( | image=image) flip(1,0, image=image | upside=image) images=vec(image, upside); // Now let us initialize the imageview object: UI::C_ImageView("X", image_labels=vec("norm","upside"), image_color=colors | UI=UI) // Insert the images: UI::C_ImageViewSetFrame(images, UI=UI | UI=UI ) // Say we want to fit the rendered image into WxH box (the image aspect is always kept original) UI.BoundingBoxWidth=512; UI.BoundingBoxHeight=512; // Now let us extract the rendered image UI::C_ImageViewGetImage(0, UI=UI | renderedimage=Visual.image)
If wavelength is known one can use module WaveLength2RGB(): colors=vec(); foreach(wavelengths, "i") WaveLength2RGB(i | color=color); push(colors, color) end()
|
|
|
|
![]() |
FuseTalk Basic Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.