Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noisee
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
imcf
noisee
Commits
0c872f99
Commit
0c872f99
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Update dressImage to add a subtext to the images
parent
b3582df1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/scripts/Plugins/NoiSee/NoiSee_Fluorescein_Analysis.ijm
+14
-7
14 additions, 7 deletions
...es/scripts/Plugins/NoiSee/NoiSee_Fluorescein_Analysis.ijm
with
14 additions
and
7 deletions
src/main/resources/scripts/Plugins/NoiSee/NoiSee_Fluorescein_Analysis.ijm
+
14
−
7
View file @
0c872f99
...
...
@@ -71,9 +71,10 @@ function makeHistogram(image_id, lut_name, logarithmic) {
return getImageID();
}
function dressImage(image_id, lut_name, enhance) {
function dressImage(image_id, lut_name, enhance
, desc
) {
// applies a given LUT to an image, applies the "Enhance contrast" command to it if the
// "enhance" parameter is non-negative, adds a calibration bar (non-overlay)
// "enhance" parameter is non-negative, adds a calibration bar (non-overlay) and optionally
// adds a text description below the image
// returns the ID of the new image, closing the old one
selectImage(image_id);
logi("dressImage(" + getTitle() + ", " + lut_name + ", " + enhance + ")");
...
...
@@ -94,6 +95,8 @@ function dressImage(image_id, lut_name, enhance) {
"label=White number=5 decimal=0 font=12 zoom=3.3 bold");
new_id = getImageID();
rename(title);
if (desc != "")
addTextToImage(new_id, false, "Center", 22, desc);
closeImage(image_id);
return new_id;
}
...
...
@@ -312,6 +315,15 @@ function process_fluo() {
////////// ////////// ////////// ////////// ////////// ////////// ////////// //////////
/////////// decorate images, add calibration bars //////////// ////////// ////////// //////////
rgb_hist = makeHistogram(img_sig, "physics", true);
addTextToImage(rgb_hist, false, "Center", 12, "Histogram of absolute signal.");
rgb_sig = dressImage(img_sig, "physics", 0.35, "Absolute signal (fluorescein - background).");
rgb_fluo = dressImage(img_fluo, "Glow", -1, "Fluorescein image (original data).");
rgb_dark = dressImage(img_bg, "Glow", -1, "Dark image (original data).");
////////// ////////// ////////// ////////// ////////// ////////// ////////// //////////
/////////// write summary of results and settings into a new table //////////// //////////
title = "NoiSee Results Summary";
...
...
@@ -332,11 +344,6 @@ function process_fluo() {
////////// ////////// ////////// ////////// ////////// ////////// ////////// //////////
/////////// decorate images, add calibration bars //////////// ////////// ////////// //////////
rgb_hist = makeHistogram(img_sig, "physics", true);
rgb_sig = dressImage(img_sig, "physics", 0.35);
rgb_fluo = dressImage(img_fluo, "Glow", -1);
rgb_dark = dressImage(img_bg, "Glow", -1);
////////// ////////// ////////// ////////// ////////// ////////// ////////// //////////
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment