plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
SMASHtoolbox/release-master
limit.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/limit.m
5,084
utf_8
202b0f2374dfcad13bcf390767d944b1
% LIMIT Limit object to a region of interest % % This method defines a region of interest in a ImageGroup % object, limiting the range used in calculations and visualization. % % Any limiting applies to all images in the ImageGroup object. % % Usage: % >> object=limit(object,array1,array2); % Three limit choices a...
github
SMASHtoolbox/release-master
crop.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/crop.m
1,827
utf_8
4768a91575f15e5d7a5bc3f360c6205d
% CROP Interactive cropping tool for ImageGroup objects % % Usage: % >> object=crop(object,bound1,bound2); % directly input boundaries of % crop region % >> object=crop(object,[imageNumber],'manual'); % interactively select crop region % You may select which image you want...
github
SMASHtoolbox/release-master
split.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/split.m
1,852
utf_8
13fac5eac34368c556b578032efe506b
% SPLIT Divide ImageGroup into Image objects % % This method breaks up an ImageGroup object into a collection of Image % objects. % >> [object1,object2,...]=split(object) % % A call for specific Image numbers can also be made: % >> [object1,object2,...]=split(object,[imageNumbers]) % % See also ImageGroup, gather ...
github
SMASHtoolbox/release-master
mean.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/mean.m
3,083
utf_8
70f06ed2d0dfc268178d3fcc8383b6d9
% MEAN Calculate mean Data value(s) % % This method calculates the mean Data value for ImageGroup objects. Averaging % can be performed over a specified coordinate ('Grid1' or 'Grid2'): % >> result=mean(object,coordinate); % or over the limited region. % >> value=mean(object,'Region'); % In the former case, "res...
github
SMASHtoolbox/release-master
locate.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/locate.m
1,140
utf_8
6d3e7c0f4b6f1db94a34dcc0af0e9b2b
% LOCATE Locate feature in an object % % This method locates features in one Image of an ImageGroup object. % By default, the feature is assumed to be a single Gaussian peak. % >> report=locate(object); % The output structure "report" contains information about the located % feature. If no output is specified, th...
github
SMASHtoolbox/release-master
center.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/center.m
1,379
utf_8
8885cb2c28924377969c3a1843a6dbe7
% CENTER Centering ImageGroup objects % % This method centers an ImageGroup object based on features selected by the % user. Two feature types--points and ellipse--are supported. The default % is ellipse. Points centering allows the user to select an arbitrary number of points, the % centroid of which defines the Im...
github
SMASHtoolbox/release-master
replace.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/replace.m
1,125
utf_8
4bdc1b7368c86c7c0e6c5792540ac9f3
% REPLACE Replace data values in an object % % This method replaces a rectangular region in one Image of an ImageGroup % with a specified value. The replacement value *must* be specified; the % replacement region can be specified or selected interactively. % % To replace values in a specific region: % >> object=...
github
SMASHtoolbox/release-master
regrid.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/regrid.m
925
utf_8
9979160ce5866db9550861f36a4c6dc5
% REGRID Transfer ImageGroup object onto a new grid % % This method interpolates an existing object into a new object on a % specified grid. % >> new=regrid(object,x,y); % If no grid is specified, a uniformly spaced grid is calculated from the % existing grid. % >> object=regrid(object); % This technique may need...
github
SMASHtoolbox/release-master
register.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/register.m
631
utf_8
f5946e5f049f64937409656ef5e7b80e
%Register This method is not supported to be called by ImageGroup % % If you want to apply a register to an ImageGroup, the method can be % called with an Image supplied as the master referene: % >result=register(master(Image),target(ImageGroup),mtable,ttable); % % see also ImageGroup, SMASH.ImageAnalysis.Ima...
github
SMASHtoolbox/release-master
evaluate.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/evaluate.m
996
utf_8
80636579bf3d117a158762299672b9a5
% evaluate Evaluate user defined functions % % This method applies user defined functions to image group data. % new=evaluate(object,@myfunc); % single function % new=evaluate(object,@myfuncA,@myfuncB,...); % multiple functions % The output "new" is an ImageGroup object containing one image for each % requested f...
github
SMASHtoolbox/release-master
showFullColor.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/showFullColor.m
1,181
utf_8
2d99b02c260d18bc6602084a10cfa269
% SHOW Standard view showing Image objects % % See also Image, detail, explore, slice, view % created October 15, 2013 by Tommy Ao (Sandia National Laboratories) % function varargout=showFullColor(object,target) assert(object.NumberImages==3,'Error: This mode requires exactly 3 image layers'); % handle input if (nar...
github
SMASHtoolbox/release-master
restore.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/restore.m
316
utf_8
a722a06e7fe7a3f1aab0ed69c76199a8
% restore Restore ImageGroup object from an archive function object=restore(data) object=SMASH.ImageAnalysis.ImageGroup([],[],NaN); %Need to make sure I can make a blank like this. name=fieldnames(data); for n=1:numel(name) if isprop(object,name{n}) object.(name{n})=data.(name{n}); end end end
github
SMASHtoolbox/release-master
shift.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/shift.m
648
utf_8
070bd126139ca44e89925f847898bac8
% SHIFT Shifts an ImageGroup object by a scalar value % % Usage: % >> object=shift(object,coordinate,value) % The "coordinate" input may be 'Grid1' or 'Grid2'. % % See also ImageGroup, map, scale % created February 11, 2016 by Sean Grant (Sandia National Laboratories/UT) function object=shift(object,coordinate,valu...
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/view.m
2,700
utf_8
58f5d9744f6ff22ec59792d32768ea4b
% VIEW ImageGroup visualization % % This method provides several types of visualization for ImageGroup objects. % By default: % >> view(object); % the objected is displayed as a mosaic of images in a new figure; a graphic % handle can be passed to render the image in a specific location. % >> view(object,mode,gca...
github
SMASHtoolbox/release-master
showSingle.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/showSingle.m
979
utf_8
257e2080be0483bdcab82ce38c64ce71
% SHOWSINGLE View single image of ImageGroup Data % % This method opens the indicated individual Image from the % provided ImageGroup in a separate window. % % showSingle(object,ImageNumber); % % See also ImageGroup, view, showMosaic % % % created January 12, 2016 by Sean Grant (Sandia National Laboratories/UT) % f...
github
SMASHtoolbox/release-master
basic_figure.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/private/basic_figure.m
1,781
utf_8
d0a1c994a62c76795a8e6a5d41648c82
% basic_figure: create a basic figure for imaging visualization % % created October 8, 2012 by Daniel Dolan (Sandia National Laboratories) % revised May 29, 2013 by Daniel Dolan % -added support for existing figures function h=basic_figure(target,orientation) % handle input if (nargin<1) target=[]; end if (n...
github
SMASHtoolbox/release-master
twist.m
.m
release-master/+SMASH/+ImageAnalysis/@ImageGroup/private/twist.m
357
utf_8
87244d65662da0976dd26a277231d1e9
function object=twist(object,theta) % split up ImageGroup temp=cell(object.NumberImages,1); tempObj=cell(object.NumberImages,1); % Perform function on each image individually [temp{:}]=split(object); for n=1:object.NumberImages tempObj{n}=twistSingle(temp{n},theta); end % remake ImageGroup object=SMASH.ImageAna...
github
SMASHtoolbox/release-master
slice.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/slice.m
6,819
utf_8
77b61303f45dd80f07e75691169a1bd8
% SLICE Generate Image slices (lineouts) % % This function slices an Image object at specified grid locations. % >> result=slice(object,coordinate,value); % The input "coordinate" should be 'Grid1' or 'Grid2'; "value" can be one % or more grid locations within that grid. If these inputs are omitted, % the user wi...
github
SMASHtoolbox/release-master
rotate.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/rotate.m
2,968
utf_8
f523787cdddc4997eea3ce3cf820cad2
% ROTATE Rotate an Image object % % This method rotates the data and grid in an Image object. % object=rotate(object,angle); % The angle theta (in degrees) is positive for counter-clockwise rotations. % NOTE: % -Cumulative operations should be avoided. For example, a 45 degree % rotation is preferable to ...
github
SMASHtoolbox/release-master
flip.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/flip.m
957
utf_8
86537736db4eba9ea027ad73c0b669ae
% FLIP Flip object Data along a specified coordinate % % Usage: % >> object=flip(object,coordinate); % "coordinate" may be 'Grid1' or 'Grid2' % % See also IMAGE, rotate % % % created November 25, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=flip(object,coordinate) % handle input if (nargin...
github
SMASHtoolbox/release-master
verifyGrid.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/verifyGrid.m
1,495
utf_8
5f1d2b732aad764aea16d3c88b84a2fc
% verifyGrid validate Image grids and check direction/uniformity % % This method verifies that the Grid arrays increases or decreases % monotonically. Increasing grids are labelled with a GridDirection of % "normal", while decreasing grids are labelled as "reverse". The average % grid spacing is also determined; if t...
github
SMASHtoolbox/release-master
show.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/show.m
1,213
utf_8
68b40aa248861d7da5be189dc8365c1c
% SHOW Standard view showing Image objects % % See also Image, detail, explore, slice, view % created October 15, 2013 by Tommy Ao (Sandia National Laboratories) % function varargout=show(object,target) % handle input if (nargin<2) || isempty(target) h=basic_figure; h.axes=axes('Parent',h.panel,'Box','on'); e...
github
SMASHtoolbox/release-master
explore.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/explore.m
4,715
utf_8
3cdef1bd730f3b5160649388b9dbe96a
% EXPLORE Interactive slice exploring tool for Image objects % % Usage: % >> explore(object); % interactively explore slices % % See also IMAGE, detail, profile, show, slice, view % created November 14, 2012 by Daniel Dolan (Sandia National Laboratories) % modified October 16, 2013 by Tommy Ao (Sandia National Labor...
github
SMASHtoolbox/release-master
differentiate.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/differentiate.m
1,745
utf_8
5559df90c83197c95f0a008b8cf18f49
% DIFFERENTIATE calculate Image derivatives % % This method calculates derivatives of Image Data. Local % polynomial smoothing (Savitzky-Golay method) is used to reduce the % effects of noise. The coordinate and smoothing parameters % are specified as input arguments. % >> result=differentiate(object,coordinate,[nh...
github
SMASHtoolbox/release-master
scale.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/scale.m
805
utf_8
3eb402a017cde27797e231c2691b1575
% SCALE Multiply an Image object by a scalar value % % Usage: % >> object=scal(object,coordinate,value) % The "coordinate" input may be 'Grid1' or 'Grid2'. % % See also IMAGE, map, shift % created October 4, 2013 by Daniel Dolan (Sandia National Laboratories) % modified October 16, 2013 by Tommy Ao (Sandia National ...
github
SMASHtoolbox/release-master
bin.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/bin.m
2,336
utf_8
c4d24b77b3fef132072e82189ce8eeb6
% BIN Reduce Image resolution by binning % % Binning is a form of smoothing, where local groups of M x N pixels are % collected into a set of "superpixels" formed by summation over the % original image. The binned object spans the same grid range, reducing % storage requirements and noise at the expense of resolution....
github
SMASHtoolbox/release-master
center_points.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/center_points.m
2,400
utf_8
df0ed062b788a025122ec83a0e8638a1
% CENTER_POINTS Centers a Image object based on centroid of points % % See also IMAGE % created April 8, 2013 by Daniel Dolan (Sandia National Laboratories) % modified October 17, 2013 by Tommy Ao (Sandia National Laboratories) % function [object,x0,y0]=center_points(object) h=view(object,'show'); set(h.figure,'Name'...
github
SMASHtoolbox/release-master
map.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/map.m
2,953
utf_8
8428e113163cfede5ca360953ad779d8
% MAP Map Image object coordinate(s) to a new representation % % This method allows applies a mapping function to one or both coordinate % arrays in Image object. It is intended for advanced users only. For % simple transformations, use the shift and scale methods. Many data % transformations can be performed direct...
github
SMASHtoolbox/release-master
histogram.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/histogram.m
1,568
utf_8
5183143c5f9b916bc7b93475606f5fe7
% HISTOGRAM Histogram of Image data % % This method provide a graphical representation of the distribution of % Image data. Elements in data are sorted into 'nbins' of equally spaced % bins along the x-axis between the minimum and maximum values of data. % % Usage: % >> varargout=histogram(object,varargin); % For ...
github
SMASHtoolbox/release-master
lookup.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/lookup.m
635
utf_8
d637d0268ae39e70791e5703eb9cd146
% LOOKUP Look up data values at specific grid locations % % This method returns interpolated data values for specified grid % locations. % >> z=lookup(object,x,y); % % See also Image, regrid % % % created November 15, 2013 by Daniel Dolan (Sandia National Laboratories) % function z=lookup(object,x,y) % handle inp...
github
SMASHtoolbox/release-master
sharpen.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/sharpen.m
887
utf_8
90e650bf31d5736bb6e40f024b75c3b0
% SHARPEN Sharpen method for Image objects % % This method sharpens the appearance of edges in a Image object by % calculating the fractional change at each point with respect to the % local average. The local average is determined with smoothing over a % specied neighborhood (11 x 11 pixels by default). The z-limit ...
github
SMASHtoolbox/release-master
limit.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/limit.m
4,829
utf_8
e793ac006b26bb507c36a27fc5523267
% LIMIT Limit object to a region of interest % % This method defines a region of interest in a Image % object, limiting the range used in calculations and visualization. % % Usage: % >> object=limit(object,array1,array2); % Three limit choices are available. The choice 'all' provides no % limit on the object range...
github
SMASHtoolbox/release-master
crop.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/crop.m
1,438
utf_8
664b7b4d71a81dacc7c99116a9e480b4
% CROP Interactive cropping tool for Image objects % % Usage: % >> object=crop(object,bound1,bound2); % directly input boundaries of % crop region % >> object=crop(object,'manual'); % interactively select crop region % % See also IMAGE, limit % % % created July 27, 2012 b...
github
SMASHtoolbox/release-master
align.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/align.m
3,444
utf_8
91a4151f26ed8373e613e2c93fe853bd
% ALIGN Align Image objects % % This method aligns an Image object using a set of specified set of (x,y). % points. The best fit polynomial through these points becomes a fixed grid % path. % % Usage: % >> object=align(object,direction,xypath,order); % - direction... % -xypath should be table of [x y] value...
github
SMASHtoolbox/release-master
smooth.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/smooth.m
1,844
utf_8
dfc56939854ef354679e7f2870843647
% SMOOTH Smooth the Image data over a local neighborhood % % Usage: % >> object=smooth(object,choice,value); % "choice" can be 'mean', 'median', or 'kernel' (advanced users only) % "value" is the smoothing neighborhood (e.g., [3 3]) or kernel weights. % % NOTE: neighborhoods and kernel arrays follow MATLAB image conv...
github
SMASHtoolbox/release-master
mean.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/mean.m
3,913
utf_8
3b8707bdfadc8fb7a056dafd164854fb
% MEAN Calculate mean Data value(s) % % This method calculates the mean Data value for Image objects. Averaging % can be performed over a specified coordinate ('Grid1' or 'Grid2'): % >> result=mean(object,coordinate); % or over the limited region. % >> value=mean(object,'Region'); % In the former case, "result" ...
github
SMASHtoolbox/release-master
locate.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/locate.m
1,467
utf_8
8e236b5abe34585436f7e7449caf68b7
% LOCATE Locate feature in an object % % This method locates features in an Image object. By default, % the feature is assumed to be a single Gaussian peak. % >> report=locate(object); % The output structure "report" contains information about the located % feature. If no output is specified, the peak location is ...
github
SMASHtoolbox/release-master
center.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/center.m
1,275
utf_8
7f5f3b524e90de8ddfc34b1c0d8c76d0
% CENTER Centering Image objects % % This method centers a Image object based on features selected by the % user. Two feature types--points and ellipse--are supported. Points % centering allows the user to select an arbitrary number of points, the % centroid of which defines the Image center. Ellipse centering also ...
github
SMASHtoolbox/release-master
replace.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/replace.m
2,327
utf_8
2342b016ff2d8c2ec6ac8b558e50fe97
% REPLACE Replace data values in an object % % This method replaces a rectangular region in an image with a specified % value. The replacement value *must* be specified; the replacement region % can be specified or selected interactively. % % To replace values in a specific region: % >> object=replace(object,value...
github
SMASHtoolbox/release-master
surface.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/surface.m
1,175
utf_8
83a6665652261835a916973854b7412a
% UNDER CONSTRUCTION % SHOW Standard view showing Image objects % % See also Image, detail, explore, slice, view function varargout=surface(object,target) % handle input if (nargin<2) || isempty(target) h=basic_figure; h.axes=axes('Parent',h.panel,'Box','on'); else h.figure=ancestor(target,'figure'); ...
github
SMASHtoolbox/release-master
convolve.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/convolve.m
345
utf_8
db84f0bce0814416ff65d97b8a8b8d74
% UNDER CONSTRUCTION % function object=convolve(object,kernel) % verify uniform grid object=makeGridUniform(object); % handle input assert(nargin<2,'ERROR: convolution kernel missing'); if ~ismatrix(kernel) error('ERROR: invalid smoothing kernel'); end object.Data=conv2(object.Data,kernel,'same'); object=up...
github
SMASHtoolbox/release-master
center_ellipse.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/center_ellipse.m
4,613
utf_8
d19d5f9a0fea1bec256cb17b2436f57a
% CENTER_ELLIPSE Centers a Image object based on a fitted ellipse % % See also IMAGE, center % created April 8, 2013 by Daniel Dolan (Sandia National Laboratories) % modified October 17, 2013 by Tommy Ao (Sandia National Laboratories) % function [object,params]=center_ellipse(object,varargin) %% % manage input Narg=n...
github
SMASHtoolbox/release-master
reset.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/reset.m
1,523
utf_8
4e5bdc660595dfdfb93498cbaf9935fa
% RESET Reset Grid and Data properties % % This method resets the Grid and Data stored in an Image object. Arrays % can be passed directly into the object: % >> object=reset(object,Grid1,Grid2,Data); % where grid1, grid2, and data are arrays of consistent size; passing an % empty array preserves the existing array....
github
SMASHtoolbox/release-master
summarize.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/summarize.m
703
utf_8
ff3d4969fb7fbdf0539e8830c310b4a4
% SUMMARIZE Summarize Image data % % This method provides a statistical summary of the data stored in an Image % object. % >> result=summary(object); % The output "result" is a structure containing the mean, standard % deviation, and other characterizations of the object's Data property over % its limited region. ...
github
SMASHtoolbox/release-master
regrid.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/regrid.m
2,025
utf_8
a22bf03e6301fd31a888b2f98cc17b73
% REGRID Transfer Image object onto a new grid % % This method interpolates an existing object into a new object on a % specified grid. % >> new=regrid(object,x,y); % If no grid is specified, a uniformly spaced grid is calculated from the % existing grid. % >> object=regrid(object); % This technique may needed be...
github
SMASHtoolbox/release-master
register.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/register.m
4,591
utf_8
76adc0021896106e947f159ef5a3f545
% register Register target Image(s) to a master Image % % This method registers a target Image to a master Image using common % points in each object. Three or more (x,y) locations must be identified % to transform the target Image to the same coordinates as the master % Image. These locations are passed to the calcu...
github
SMASHtoolbox/release-master
restore.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/restore.m
255
utf_8
f4f9b10d50137132bda2366b1e1c8a29
% restore Restore Image object from an archive function object=restore(data) object=SMASH.ImageAnalysis.Image([],[],NaN); name=fieldnames(data); for n=1:numel(name) if isprop(object,name{n}) object.(name{n})=data.(name{n}); end end end
github
SMASHtoolbox/release-master
subtractBackground.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/subtractBackground.m
5,871
utf_8
4654eb50e9ef05aca5af53d661b9cf05
% subtractBackground Advanced background subtraction % % This method of the Radiography class subtracts background exposure levels % from radiography images. The user can interactively select locations of % the image that correspond to zero exposure or supply X,Y,Z values to use. % The function calls svd_surface to fi...
github
SMASHtoolbox/release-master
merge.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/merge.m
2,432
utf_8
b634441fc91aaa462aee0ee47a7fb96d
% MERGE Merge Image objects into a single object % % This method merges mutiple Image objects into a single object. % >> new=merge(object1,object2,...); % The new object Grid is determined by the outermost points of the source % objects, spaced by the smallest source grid spacings. Source objects are % added to thi...
github
SMASHtoolbox/release-master
shift.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/shift.m
802
utf_8
7ab72c6fb8123a66ba94ccff3bad8436
% SHIFT Shifts a Image object by a scalar value % % Usage: % >> object=shift(object,coordinate,value) % The "coordinate" input may be 'Grid1' or 'Grid2'. % % See also IMAGE, map, scale % created October 4, 2013 by Daniel Dolan (Sandia National Laboratories) % modified October 16, 2013 by Tommy Ao (Sandia National La...
github
SMASHtoolbox/release-master
region.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/region.m
7,632
utf_8
d33318465c38d34475c02e6380bb3f07
% REGION Select a region of interest inside a Image object % % Standard use: % >> data=region(object); % This command displays the object and allows a region of interest % to be selected interactively. To specify boundary points of the region, % click the left mouse button on the displayed image. Shift-clicking on ...
github
SMASHtoolbox/release-master
bandpass.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/bandpass.m
4,174
utf_8
56606060db15b25759d2475adb6f70cf
% BANDPASS Bandpass filtering of Image data % % Usage: % >> object=bandpass(object,range,type,[order],[spectra]); % "range" are normalized low & high frequency cutoffs (0<value<1), % e.g. [0.001 0.25]; % "type" is for the following filters: % 'ideal', 'gaussian', 'butterworth', 'chebyshev'; % "order" is an integ...
github
SMASHtoolbox/release-master
makeGridUniform.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/makeGridUniform.m
1,330
utf_8
ca929a72d2f53279e23e2c37ab73e489
% makeGridUniform Enforce uniform Image grid % % >> object=makeGridUniform(object); % % See also Image % % % created November 20, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=makeGridUniform(object) if object.Grid1Uniform && object.Grid2Uniform return end persistent AutoRegrid if isem...
github
SMASHtoolbox/release-master
detail.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/detail.m
6,979
utf_8
7d1614cf4a4dd9f5a9906106fc88b146
% DETAIL Interactive detail viewing tool for Image objects % % Usage: % >> detail(object,target); % interactively select detail region % % See also IMAGE, explore, show, slice, view % created May 28, 2013 by Daniel Dolan (Sandia National Laboratories) % modified October 16, 2013 by Tommy Ao (Sandia National Laborato...
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/view.m
2,669
utf_8
3346cfc12b7861f5553babaf606d9bd6
% VIEW Image visualization % % This method provides several types of visualization for Image objects. % By default: % >> view(object); % the objected is displayed as a single image in a new figure; a graphic % handle can be passed to render the image in a specific location. % >> view(object,gca); % show image in ...
github
SMASHtoolbox/release-master
export.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/export.m
2,113
utf_8
ea42de56324a967c48f9eeb5b829b49f
% EXPORT Export object simple data file % % This method exports objects to a data file for use outside of the Image % class. % >> export(object,filename); % % If the file name has a *.pff extension (case insensitive), the export % % uses the (binary) Portable File Format. Any other extension exports the image to % ...
github
SMASHtoolbox/release-master
basic_figure.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/private/basic_figure.m
1,781
utf_8
d0a1c994a62c76795a8e6a5d41648c82
% basic_figure: create a basic figure for imaging visualization % % created October 8, 2012 by Daniel Dolan (Sandia National Laboratories) % revised May 29, 2013 by Daniel Dolan % -added support for existing figures function h=basic_figure(target,orientation) % handle input if (nargin<1) target=[]; end if (n...
github
SMASHtoolbox/release-master
localmedian.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/private/localmedian.m
1,941
utf_8
83ed229d39509d041a7eace052a1de07
% This function applies local median filtering on 2D arrays. % >> new=localmedian(array,nhood); % The default neighborhood is 3x3. Larger neighborhoods may be specified % by passing a "nhood" input. % % Median filtering is always slower than convolution operations (mean, etc) % and is not linear, so it should be u...
github
SMASHtoolbox/release-master
basic_colorbar.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/private/basic_colorbar.m
1,966
utf_8
ccae8fece91d4cb5c2787d4f22ff3926
function hc=basic_colorbar(varargin) % create colorbar hc=colorbar(varargin{:}); % modify colorbar hm=uicontextmenu; uimenu(hm,'Label','Adjust color scale','Callback',{@AdjustScale,hc}); set(hc,'UIContextMenu',hm); setappdata(hc,'TargetAxes',[]); setappdata(hc,'AdjustScaleDialog',[]); % finish up set(hc,'DeleteFcn'...
github
SMASHtoolbox/release-master
SelectImageFile.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/private/SelectImageFile.m
972
utf_8
a142ac31d3ea0781abb24969a06d4915
% SelectImageFile : prompt user to select file from supported formats % created October 15, 2013 by Tommy Ao (Sandia National Laboratories) % function filename=SelectImageFile() ccd='*.spe;*.SPE;*.imd;*.IMD;*.img;*.IMG'; film='*.img;*.IMG;*.hdf;*.HDF'; plate='*.img;*.IMG;'; standard='*.bmp;*.BMP;*.jpg;*.JPG;*.jpeg;*....
github
SMASHtoolbox/release-master
ChebyshevPoly.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/private/ChebyshevPoly.m
709
utf_8
bb890d00927fc2eeb6414cb199031e8a
% Given nonnegative integer n, compute the % Chebyshev polynomial T_n. Return the result as a column vector whose mth % element is the coefficient of x^(n+1-m). % polyval(ChebyshevPoly(n),x) evaluates T_n(x). function tk = ChebyshevPoly(n) if n==0 tk = 1; elseif n==1 tk = [1 0]'; else tkm2 = zero...
github
SMASHtoolbox/release-master
IterativeEllipseFit.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/private/IterativeEllipseFit.m
3,616
utf_8
cfc458ce00f0b9760076c284b09123ff
% EllipseFit : Fit an ellipse to (x,y) data % created 3/6/2005 by Daniel Dolan % % Usage: % params = InterativeEllipseFit(x, y); % use default guess % = InterativeEllipseFit(x, y, guess); % user specified guess % = InterativeEllipseFit(x, y, fixed); % hold some parameters fixed % = Int...
github
SMASHtoolbox/release-master
SGderivative.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/private/SGderivative.m
3,643
utf_8
3346fb47b713f3ce5992a8f7431dcb8b
% SGderivative : calculate a smooth derivative using the Savitzky-Golay % method. The derivative level may be specified by an array of positive % integers (including zero); the result for each array entry is returned as % a separate function output. The order and number of points used in the % calculation are specifie...
github
SMASHtoolbox/release-master
rectangle2.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/private/rectangle2.m
692
utf_8
4b321b4e12aca1a2d12943589c9604af
% RECTANGLE2 : black on white rectangle for universal visiblity function h2=rectangle2(varargin) h1=rectangle(varargin{:}); h2=rectangle(varargin{:}); hr=[h1 h2]; set(h1,'EdgeColor','w','LineStyle','-'); linestyle=get(h2,'LineStyle'); if strcmp(linestyle,'-') set(h2,'EdgeColor','k','LineStyle','--'); end set(hr,...
github
SMASHtoolbox/release-master
gaussfit.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/private/gaussfit.m
2,922
utf_8
8c5594c19d17f9c3f0dc979a1547ac82
% gaussfit function report=gaussfit(x1,x2,y,guess,bound) % manage input if isempty(guess) [temp,index1]=max(abs(y)); [~,index2]=max(temp); x1p=x1(index2); x2p=x2(index1(index2)); %xtemp=reshape(x-xp,size(y)); %sigma=sqrt(sum(y.*(xtemp-xp).^2)/sum(y)); % sigma1=(max(x1)-min(x1))/4; % sig...
github
SMASHtoolbox/release-master
DirectEllipseFit.m
.m
release-master/+SMASH/+ImageAnalysis/@Image/private/DirectEllipseFit.m
2,757
utf_8
a3181e2c46c271c836bbd965d89368e1
% DirectEllipseFit : direct ellipse fitting % created 4/5/2005 by Daniel Dolan % % Usage: % params = DirectEllipseFit(x, y); % % This function provides a direct (non-iterative) ellipse fit for a series % of (x,y) data. The core opertion of the function is based on the MATLAB % routines listed in a conference p...
github
SMASHtoolbox/release-master
ClassicFigure.m
.m
release-master/+SMASH/+Graphics/ClassicFigure.m
715
utf_8
0c995c0782185542b54609b030a2c15f
% ClassicFigure Create classic MATLAB figure % % This function creates a classic MATLAB figure, placing axes control % (zoom, pan, etc.) in a unified toolbar; vanishing axes toolbars are also % disabled. % ClassicFigure(); % fig=ClassicFigure(...); % % See also SMASH.Graphics % % % created May 13, 2020 by Daniel...
github
SMASHtoolbox/release-master
app2class.m
.m
release-master/+SMASH/+Graphics/app2class.m
1,480
utf_8
2ff6735a66d70a94888d4080e4390260
% app2class Convert app to class file % % This function converts a *.mlapp file (generated by the App Designer) to % a class definition *.m file. The input syntax is: % app2class(source,destination). % If no inputs are specified, the user is prompted to select a *.mlapp % file. Omitting the second input places the...
github
SMASHtoolbox/release-master
apply.m
.m
release-master/+SMASH/+Graphics/@GraphicOptions/apply.m
2,456
utf_8
206d7ea38977876a4ad779a1a2e7ce5b
% apply Apply graphic options % % This method applies graphic objects to a target object. % >> apply(object,target); % The input "target" must be a graphic handle or an array of handles. % % By default, this method applies options to the target object and all of % its parent objects (up to the figure level). Pass...
github
SMASHtoolbox/release-master
place.m
.m
release-master/+SMASH/+Graphics/+FigureTools/place.m
4,486
utf_8
1ca56c785efb85adfa88fa6878d9eedb
% place Place figures on specific monitor % % This method places existing MATLAB figures on a particular monitor. % place(); % put all figures on largest monitor % place('largest'); % same as above % By default, figures are placed on the largest monitor; new figure % spawning and then monitor number are used in t...
github
SMASHtoolbox/release-master
focus.m
.m
release-master/+SMASH/+Graphics/+FigureTools/focus.m
3,893
utf_8
fe404024a47040fcc0384e320f2adcd3
% focus Focus on allowed figures % % This method focuses MATLAB on a list of allowed figures. % SMASH.Graphics.FigureTools.focus(allowed); % handle graphics array % Selecting any figure *not* on this list makes MATLAB focus on the most % recently active allowed figure. % % Calling this method with no input returns t...
github
SMASHtoolbox/release-master
clip.m
.m
release-master/+SMASH/+Graphics/+FigureTools/clip.m
735
utf_8
c89592dbae0b1b466b436d582a71488d
% clip Copy figure to the clip board % % This function prints a MATLAB figure to the clip board (for pasting in % another application). % SMASH.Graphics.FigureTools.clip(); % By default, the current figure is copied to the clip board. Passing a % graphic handle clips the specified figure. % SMASH.Graphics.Figure...
github
SMASHtoolbox/release-master
tile.m
.m
release-master/+SMASH/+Graphics/+FigureTools/tile.m
4,031
utf_8
2df2ee27774feaf5b114474b8418edac
% tile Tile figures % % This methods tiles MATLAB figures across a monitor. By default, % all existing files are horizontally tiled. % tile(); % The first input indicates the tiling mode, which can be 'horizontal', % 'vertical', or row/column specification. % tile([3 2]); % three rows, two columns % Passing an i...
github
SMASHtoolbox/release-master
spawn.m
.m
release-master/+SMASH/+Graphics/+FigureTools/spawn.m
1,289
utf_8
1ef02415f00fe51851ebd773143beb61
% spawn Create new figure in a specific place % % This method creates a new figure in a specific place. New figures can be % spawned on a particular monitor % spawn(monitor); % specified by number, 'largest', or 'smallest'; the default choice is % 'largest'. Figure location on that monitor can also be controlled. ...
github
SMASHtoolbox/release-master
follow.m
.m
release-master/+SMASH/+Graphics/+FigureTools/follow.m
5,009
utf_8
8c5b613dc8cfb412c52635baaaee128f
% follow Link figure positions % % This method links a group of figures into a family: % follow(family); % The input "family" is an array of at least two figure handles. The first % handle is defined as the parent, and all subsequent handles are % dependents. Dependent figures move with the parent figure, but the ...
github
SMASHtoolbox/release-master
print.m
.m
release-master/+SMASH/+Graphics/+FigureTools/print.m
4,303
utf_8
547008988e8599314f896cd59b625c35
% print Print figure to a graphic file % % This function prints a MATLAB figure to a graphic file. The output file % name must be explicitly specified. % print(filename); % The output format is determined from the file extension. % *.eps : Encapsulated PostScript file % *.jpg, *.jpeg : Joint Photograp...
github
SMASHtoolbox/release-master
whiten.m
.m
release-master/+SMASH/+Graphics/+FigureTools/whiten.m
2,161
utf_8
3f4b0440564f824440cd999b07d7e9b0
% whiten Force white backgrounds in a figure % % This method forces a figure and certain objects (uipanels, axes) in % that figure to have a white background. Such changes allow figures % exported to a graphic file (*.pdf, etc.) to be consistent with printing % onto white paper. % % Calling the function without an inp...
github
SMASHtoolbox/release-master
stack.m
.m
release-master/+SMASH/+Graphics/+FigureTools/stack.m
1,175
utf_8
9a85c222230418e795e92c7c7e2a6a66
% stack Stack figures % % This method stacks figures into a pile, matching the size of the top % figure. % stack(); % stack all accessible figures % stack(fig); % stack particular figures % Stacking order is defined by the input "fig": the first figure is on top, % followed by the second, and so forth. % % See ...
github
SMASHtoolbox/release-master
errorbar2.m
.m
release-master/+SMASH/+Graphics/+PlotTools/errorbar2.m
3,051
utf_8
d61ceac6bea265e4e89006351b4f3f33
% errorbar2 Generate two-dimensional error bars % % This function generates two dimensional error bars. % errorbar2(x,y,dx,dy,hx,hy) % The first four inputs ("x", "y", "dx", and "dy") are needed to define the % error bar location and sizes. Option inputs "hx" and "hy" control the % fractional size of the boud...
github
SMASHtoolbox/release-master
getcurve.m
.m
release-master/+SMASH/+Graphics/+PlotTools/getcurve.m
1,570
utf_8
abd69cd8e25aabbb5e200cd6ff9dd7cf
% getcurve Returns (x,y) data for a line displayed in a figure % [x,y]=getcurve; gets data from current line % [x,y]=getcurve(h); gets data from the line with handle h % % [x,y]=getcurve('xlim'); % extract data with current x limits % [x,y]=getcurve('ylim); % [x,y]=getcurve('xylim'); % updated 2/9/...
github
SMASHtoolbox/release-master
cline.m
.m
release-master/+SMASH/+Graphics/+PlotTools/cline.m
1,550
utf_8
35f8cceb634f8c00d804558331752895
% cline Draw variable color line % % This function draws lines that vary in color from one end to the other. % Two-dimensional lines are created % >> cline(x,y,color); % >> cline(x,y,color,name,value,...); % The third input ("z") must either be a scalar or an array with the same % number of elements as "x" and ...
github
SMASHtoolbox/release-master
contours2lines.m
.m
release-master/+SMASH/+Graphics/+PlotTools/contours2lines.m
930
utf_8
38a9b3d6ccde00df3842ecc04bd81f9d
% contours2lines Extract line data from contour matrix % % This function extracts line data from a contour matrix (as generated from % contourc). % [data,level]=contours2lines(Cmatrix) % The output "data" is a cell array containing two-column numeric arrays % ([x y]). The output "level" is a corresponding array of ...
github
SMASHtoolbox/release-master
locateText.m
.m
release-master/+SMASH/+Graphics/+PlotTools/locateText.m
2,206
utf_8
166ed4ebd0fdf16707301f7cfada08da
% locateText Locate text with respect to the current axes % % This function places text in specified locations with respect to the % current axes. The calling syntax is: % ht=locateText(entry,location); % The input "entry" is text string (or cell array of text strings) to be % placed. The input "location" indicate...
github
SMASHtoolbox/release-master
intersect2D.m
.m
release-master/+SMASH/+Graphics/+PlotTools/intersect2D.m
3,857
utf_8
dbea55f4437c708c323f4f72362680b6
% intersect2D Find curve intersections in two dimensions % % This function finds curve intersections in a two-dimensional plane. % These curves are defined by sequential line segements, each of which % potential intersect with segments from the other curve. Curves can be % specified by graphic handles, two-column [x y...
github
SMASHtoolbox/release-master
lines2contours.m
.m
release-master/+SMASH/+Graphics/+PlotTools/lines2contours.m
535
utf_8
f4e1912eba81224f5be52a48a43371bf
% lines2contours Convert line data to a contour matrix % function Cmatrix=lines2contours(data,level) % manage output N=numel(data); if (nargin<2) || isempty(level) level=1:N; end assert(isnumeric(level) && numel(level)==N,... 'ERROR: invalid level array'); % generate contour matrix Cmatrix=zeros(2,0); colum...
github
SMASHtoolbox/release-master
plotContourMatrix.m
.m
release-master/+SMASH/+Graphics/+PlotTools/plotContourMatrix.m
1,667
utf_8
54fb1b796711f8216e95458ccf1c5fa3
% plotContourMatrix Plot contour matrix % % Contour matrices are generated by the contourc function, but for whatever % reason MATLAB provides no way to plot these matrices directly. This % function provides this capability in a limited sense. Each contour is % rendered as a line object with a unique color. % % The s...
github
SMASHtoolbox/release-master
distinctColor.m
.m
release-master/+SMASH/+Graphics/+PlotTools/distinctColor.m
2,695
utf_8
ce5c97bc727ae314d1a788e8050fc58a
% distinctColor Generate maximally distinct color % % This function generates maximally distinct colors relative to a % three-column map. The minimum distance of these values (in RGB % space) is maximized for greatest visual clarity. % color=distinctColor(map); % The ouput "color" is a three-column matrix. Each m...
github
SMASHtoolbox/release-master
complement.m
.m
release-master/+SMASH/+Graphics/+PlotTools/@AlternatingLine/complement.m
1,301
utf_8
91481abe7e6a2f98a522f1b2fd4bdcde
% complement Assign complment color % % This function assigns the background line color to be the complement of % the foreground line color. % >> complement(object); % % See also AlternatingLines % % % created December 10, 2014 by Daniel Dolan (Sandia National Laboratories) % function complement(object) color=obj...
github
SMASHtoolbox/release-master
reverse.m
.m
release-master/+SMASH/+Graphics/+PlotTools/@AlternatingLine/reverse.m
405
utf_8
b691d05cfb92460116242d355e6f4b55
% reverse Reverse foreground/background colors % % This method reverse the background and foreground colors in an % AlternatingLine. % >> reverse(object); % % See also AlternatingLine % % % created December 10, 2014 by Daniel Dolan (Sandia National Laboratories) % function reverse(object) temp=object.ForegroundCo...
github
SMASHtoolbox/release-master
add.m
.m
release-master/+SMASH/+Graphics/+PlotTools/@PerformanceBands/add.m
705
utf_8
f236aeb4e19be6ef92715a1e86521f3c
% object=add(object,name,data); % object=add(object,nameA,dataA,nameB,dataB,...); function object=add(object,varargin) assert(nargin > 1,'ERROR: insufficient input'); Narg=numel(varargin); assert(rem(Narg,2) == 0,'ERROR: unmatched name/data pair'); new=struct('Label','','Table',[]); for n=1:2:Narg name=varargin{...
github
SMASHtoolbox/release-master
checkDisplay.m
.m
release-master/+SMASH/+Graphics/+DisplayTools/checkDisplay.m
2,212
utf_8
b6aab76485b43ef22dd27e8a513c9392
% checkDisplay Check monitor information % % This method reports the available monitors in the current MATLAB session. % Calling the method with no outputs: % checkDisplay(); % prints a list of monitor information in the command window. This % information is returned as a data structure as requested. % data=chec...
github
SMASHtoolbox/release-master
scaleFigure.m
.m
release-master/+SMASH/+Graphics/+DisplayTools/scaleFigure.m
4,659
utf_8
a61c86a3cac0220121eb7ee278cff717
% scaleFigure Scale figure % % This function scales the displayed size of a MATLAB figure. % scaleFigure(factor); % scale figure by specified factor % scaleFigure('auto'); % automatic scaling % The input "factor" must be a number greater than zero (in percent) or % 'auto', which determines a scale factor based ...
github
SMASHtoolbox/release-master
scaleDefaultFonts.m
.m
release-master/+SMASH/+Graphics/+DisplayTools/scaleDefaultFonts.m
6,667
utf_8
8f0c012da7cffb948461650d222c4800
% scaleDefaultFonts Scale default font sizes % % This function adjusts the font size used in MATLAB figures. Scaling is % specified as a percentage of the default font size. % scaleDefaultFonts(value); % For example, a scale factor of 200 doubles the font size while a scale % factor of 50 halves it. Default scaling...
github
SMASHtoolbox/release-master
selectDisplay.m
.m
release-master/+SMASH/+Graphics/+DisplayTools/@PointerControl/selectDisplay.m
890
utf_8
71747a6e0a69987e52c5b2b973217240
% selectDisplay Move pointer to specified display % % This method moves the point to the center of a display. % selectDisplay(object,monitor); % The input "monitor" is an integer indicating the selected display. The % primary display is used when this input is omitted.eater than one. % % See also PointerControl, se...
github
SMASHtoolbox/release-master
store.m
.m
release-master/+SMASH/+Graphics/+DisplayTools/@PointerControl/store.m
768
utf_8
5704eb5f6e5d14b382a668e7aaecc102
% store Store pointer location % % This method stores the current pointer location in the History property. % store(object); % Pointer locations can also be stored manually. % store(object,[x y]); % Inputs "x" and "y" should be specified in pixels % % See also PointerControl, rewind % % % created January 17, 20...
github
SMASHtoolbox/release-master
selectGraphic.m
.m
release-master/+SMASH/+Graphics/+DisplayTools/@PointerControl/selectGraphic.m
3,629
utf_8
3df9f2d9e063e6e479d6d19a834129ee
% selectGraphic Move pointer to graphic object % % This method moves the pointer a specified graphic object. % selectGraphic(object,target); % The input "target" must be a handle to an axes, uipanel, uicontrol, % uitable, or figure object. The location and size of the target object % (in pixels) can be requested as...
github
SMASHtoolbox/release-master
rewind.m
.m
release-master/+SMASH/+Graphics/+DisplayTools/@PointerControl/rewind.m
530
utf_8
8675de8053ae997fdf9b2af18468760b
% rewind Return pointer to stored location % % This method returns the pointer to the last stored location. % rewind(object); % Each method call removes a stored location from the History property. % When no stored locations remain, this method has no effect. % % See also PointerControl, store % % created January 1...
github
SMASHtoolbox/release-master
click.m
.m
release-master/+SMASH/+Graphics/+DisplayTools/@PointerControl/click.m
831
utf_8
5dc81029ad7ec25646c7ba55e7673ed4
% click Simulate mouse click % % This method simulates a mouse click at the pointer's current location. % click(object); % Passing a graphic handle: % click(object,target); % ensures that the parent figure is visible during the click. % % See also PointerControl, selectGraphic % % % created January 17, 2020 by D...
github
SMASHtoolbox/release-master
trimAxes.m
.m
release-master/+SMASH/+Graphics/+AxesTools/trimAxes.m
1,733
utf_8
93e9e2a73a17ccc118f70f3f57211e88
% trimAxes Trim graphic objects to current axes limits % % This function trims lines and images within an axes to the current (x,y) % limits. % trimAxes(); % trim current axes % trimAxes(target); % trim axes specitied by "target" % % See also SMASH.Graphics % % % created May 29, 2017 by Daniel Dolan (Sandia Nati...
github
SMASHtoolbox/release-master
clone.m
.m
release-master/+SMASH/+Graphics/+AxesTools/clone.m
6,035
utf_8
6c9267dbf8318a85df28a5a717013ae5
% clone Copy selected axes % % This function clones individual an individual axes to a new figure. The % clone is independent from its source and fully spans its figure % (regardless of the source axes size). An axes clone (graphic handle % "new") can be made directly when the source handle is known. % new=clone(ha...