Join/Login

Business Software

Open Source Software

For Vendors

Blog

About

More

Articles

Create

SourceForge Podcast

Site Documentation

Subscribe to our Newsletter

Support Request

For Vendors Help Create Join Login

Business Software

Open Source Software

SourceForge Podcast

Resources

Articles

Case Studies

Blog

Menu

Help

Create

Join

Login

Home

Browse

Iris

Calliope

Iris Calliope

2-photon scanning software

Brought to you by: heinmatt, kellgeor

Summary

Reviews

Support

Wiki

Tickets ▾

Bugs

Tasks

Feature Requests

SVN ▾

Iris Main

Auxiliary Code

Calliope

Discussion

Menu ▾ ▴

Browse Commits

Browse Files

[r1139]: / RoiQuest / +gfx / createDisplayImage.m  Maximize  Restore  History

Download this file

31 lines (25 with data), 1.3 kB

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

function createDisplayImage(app)

if isempty(app.imgs)

else

% Transform all images in grayscale uint8 from double.

% This works becuase this function gets called only the first time the

% display image has to be created

for i=1:length(app.imgs)

app.imgs{i} = gfx.adjustImgContrast(app.imgs{i}); % Default adjust to bestFit

end

% Create the handle for the main image

app.gHandles.imgHandle = imshow(app.imgs{app.imgIdx}, app.cmap, ...

'Parent', app.gHandles.ax_img);

% Update median and std of the currently displayed image

app.currImgMedian = median(double(app.imgs{app.imgIdx}), 'all', 'omitnan');

app.currImgStd = std(double(app.imgs{app.imgIdx}), [], 'all', 'omitnan');

% Create the handle for the overlay in the same axis and change the opacity

app.imgOvrl = zeros(size(app.imgs{1}));

hold(app.gHandles.ax_img, 'on')

app.gHandles.imgOvrl = imshow(ind2rgb(app.imgOvrl, app.labCmap),...

'Parent', app.gHandles.ax_img);

hold(app.gHandles.ax_img, 'off')

app.gHandles.imgOvrl.AlphaData = (app.imgOvrl>0) * app.ovrlOpacity;

% Adjust the aspect ratio so that cells don't look squished

app.gHandles.ax_img.DataAspectRatio = [3,2,1];

end

SourceForge

Create a Project

Open Source Software

Business Software

Top Downloaded Projects

Company

About

Team

SourceForge Headquarters
225 Broadway Suite 1600
San Diego, CA 92101
+1 (858) 422-6466

Resources

Support

Site Documentation

Site Status

SourceForge Reviews

© 2025 Slashdot Media. All Rights Reserved.

Terms Privacy Opt Out Advertise

×
Want the latest updates on software, tech news, and AI?

Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.

Submit