PerkinElmer Informatics Support Forum
Decrease font size
Increase font size
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
Topic Tools Topic Tools
View topic in raw text format. Print this topic.
 5/4/2015 5:26 AM
User is offline View Users Profile Print this message


Posts: 1
Joined: 3/31/2015

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)



// 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():


foreach(wavelengths, "i")

WaveLength2RGB(i | color=color);

push(colors, color)


FuseTalk Basic Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.