forked from evodevosys/AroSpotFindingSuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscale.m
executable file
·16 lines (14 loc) · 817 Bytes
/
scale.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function outim = scale(im);
% =============================================================
% Name: scale.m %nameMod
% Version: 1.0, 9 Nov 2011 %nameMod
% Author: Scott Rifkin, webpage: http://www.biology.ucsd.edu/labs/rifkin/
% Attribution: Rifkin SA., Identifying fluorescently labeled single molecules in image stacks using machine learning. Methods Mol Biol. 2011;772:329-48.
% License: Creative Commons Attribution-Share Alike 3.0 United States, http://creativecommons.org/licenses/by-sa/3.0/us/
% Website: http://www.biology.ucsd.edu/labs/rifkin/software/spotFindingSuite
% Email for comments, questions, bugs, requests: sarifkin at ucsd dot edu
% =============================================================
%function to scale image
mn = min(im(:));
mx = max(im(:));
outim = (im-mn)/(mx-mn);