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
jacksky64/imageProcessing-master
load_signal.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_wavelets/toolbox/load_signal.m
12,338
utf_8
b70e4cb57d6b467ae9c90d4b3310a81f
function y = load_signal(name, n, options) % load_signal - load a 1D signal % % y = load_signal(name, n, options); % % name is a string that can be : % 'regular' (options.alpha gives regularity) % 'step', 'rand', % 'gaussiannoise' (options.sigma gives width of filtering in pixels), % [natural signa...
github
jacksky64/imageProcessing-master
load_image.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_wavelets/toolbox/load_image.m
20,946
utf_8
f51ce8bb55fa19a67c87b6d1249cb2a5
function M = load_image(type, n, options) % load_image - load benchmark images. % % M = load_image(name, n, options); % % name can be: % Synthetic images: % 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line', % 'line_vertical', 'l...
github
jacksky64/imageProcessing-master
perform_thresholding.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_wavelets/toolbox/perform_thresholding.m
2,482
utf_8
0f3a43687bf3809b0789cace4871a1e6
function y = perform_thresholding(x, t, type) % perform_thresholding - perform hard or soft thresholding % % y = perform_thresholding(x, t, type); % % type is either 'hard' or 'soft' or 'semisoft' % t is the threshold % % works also for complex data, and for cell arrays. % % if type is 'strict' then it keeps...
github
jacksky64/imageProcessing-master
histo.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_wavelets/toolbox/histo.m
1,835
utf_8
e76d8956cd1d59f518a8146dc5145f9b
% [N,X] = histo(MTX, nbinsOrBinsize, binCenter); % % Compute a histogram of (all) elements of MTX. N contains the histogram % counts, X is a vector containg the centers of the histogram bins. % % nbinsOrBinsize (optional, default = 101) specifies either % the number of histogram bins, or the negative of the binsize. %...
github
jacksky64/imageProcessing-master
ltsa.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_dimreduc/ltsa.m
2,653
utf_8
39339d59acc8335882d3bf9aeeed65f0
% ltsa - local tangent planes alignement % % [T,NI] = ltsa(X,d,K); % % X is the (d,n) n data points in R^d. % d is the output dimensionnality. % K is the number of nearest neighbors. % % Written by Zhenyue Zhang & Hongyuan Zha, 2004. % Reference: http://epubs.siam.org/sam-bin/dbq/article/41915 funct...
github
jacksky64/imageProcessing-master
hlle.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_dimreduc/hlle.m
5,717
utf_8
c4f0f3986f804846fe8c8137aed78dd8
function [Y, mse] = HLLE(X,k,d) %HLLE Runs the standard Hessian LLE implementation of Hessian Eigenmaps % % X is the high-dimensional data to be processed % k is the number of nearest neighbor points to be used % if k is a scalar, same size used at all points. if k is a vector of % length N, neighbo...
github
jacksky64/imageProcessing-master
qslim.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/qslim.m
13,152
utf_8
2ab54ac7408e720642cbe21d8b6927bd
function [NFV,smf_fname] = qslim(FV,varargin); %QSLIM - Mesh simplification, wrapper function for Garland's QSLIM executable program % function [NFV,smf_fname] = qslim(FV,varargin); % varargin should be entered in pairs '<option>','<arg>'. % Valid pairs used in this wrapper are: % % '-t', <n> % % Specify the desired...
github
jacksky64/imageProcessing-master
perform_point_picking.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/perform_point_picking.m
4,121
utf_8
9c43a474845c0bc92e5d215f6eda9a88
function perform_point_picking( PointCloud, face ) % function perform_point_picking( PointCloud, face ); % % This function shows a 3D point cloud or a mesh and lets the user click select one % of the points by clicking on it. The selected point will be highlighted % and its index in the point cloud will be...
github
jacksky64/imageProcessing-master
select3d.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/select3d.m
10,864
utf_8
64f6b58cf8db75c3508f68035be9892e
function [pout, vout, viout, facevout, faceiout] = select3d(obj) %SELECT3D(H) Determines the selected point in 3-D data space. % P = SELECT3D determines the point, P, in data space corresponding % to the current selection position. P is a point on the first % patch or surface face intersected along the selection ...
github
jacksky64/imageProcessing-master
compute_parameterization.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/compute_parameterization.m
7,948
utf_8
ccbb3294b8723d824f8bfa35c4ea64dc
function vertex1 = compute_parameterization(vertex,face, options) % compute_parameterization - compute a planar parameterization % % vertex1 = compute_parameterization(vertex,face, options); % % options.method can be: % 'parameterization': solve classical parameterization, the boundary % is...
github
jacksky64/imageProcessing-master
perform_dijkstra_propagation_old.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/perform_dijkstra_propagation_old.m
5,116
utf_8
28fc1b6f28ff90c69f6e7c7330aaa33f
function D = perform_dijkstra_propagation_old( G , S ) % dijkstra - Find shortest paths in graphs % % D = dijkstra_fast( G , S ); % % use the full or sparse matrix G in which % an entry (i,j) represents the arc length between nodes i and j in a % graph. In a full matrix, the value INF represents the abse...
github
jacksky64/imageProcessing-master
compute_boundary.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/compute_boundary.m
1,951
utf_8
a1d4f16ccb164b5d4d3dded2507bbee2
function boundary=compute_boundary(face, options) % compute_boundary - compute the vertices on the boundary of a 3D mesh % % boundary=compute_boundary(face); % % Copyright (c) 2007 Gabriel Peyre options.null = 0; verb = getoptions(options, 'verb', 1); if size(face,1)<size(face,2) face=face'; end...
github
jacksky64/imageProcessing-master
compute_geometric_laplacian.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/compute_geometric_laplacian.m
5,760
utf_8
b6c0f7f8acdbb0c203c5f1a297957760
function L = compute_geometric_laplacian(vertex,face,type) % compute_geometric_laplacian - return a laplacian % of a given triangulation (can be combinatorial or geometric). % % L = compute_geometric_laplacian(vertex,face,type); % % Type is either : % - 'combinatorial' : combinatorial laplacian, d...
github
jacksky64/imageProcessing-master
check_face_vertex.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/check_face_vertex.m
646
utf_8
fe3c5da3b1ca8f15eb7eed61acfc2259
function [vertex,face] = check_face_vertex(vertex,face, options) % check_face_vertex - check that vertices and faces have the correct size % % [vertex,face] = check_face_vertex(vertex,face); % % Copyright (c) 2007 Gabriel Peyre vertex = check_size(vertex); face = check_size(face); %%%%%%%%%%%%%%%%%%%%%%%%%%%%% f...
github
jacksky64/imageProcessing-master
plot_graph.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/plot_graph.m
2,140
utf_8
337033b66fe405903639bcac59c2b34d
function h = plot_graph(A,xy, options) % plot_graph - display a 2D or 3D graph. % % plot_graph(A,xy, options); % % options.col set the display (e.g. 'k.-') % % Copyright (c) 2006 Gabriel Peyre if size(xy,1)>size(xy,2) xy = xy'; end if nargin<3 options.null = 0; end if not(isstruct(options)) col = op...
github
jacksky64/imageProcessing-master
perform_faces_reorientation.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/perform_faces_reorientation.m
2,816
utf_8
2cf3d5c1ad6ea271b524352db5492c2c
function faces = perform_faces_reorientation(vertex,faces, options) % perform_faces_reorientation - reorient the faces with respect to the center of the mesh % % faces = perform_faces_reorientation(vertex,faces, options); % % try to find a consistant reorientation for faces of a mesh. % % if options.method = 'fast...
github
jacksky64/imageProcessing-master
plot_spherical_triangulation.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/plot_spherical_triangulation.m
1,397
utf_8
fde5d8ffb7898bb232257895ced3d53d
function plot_spherical_triangulation(svertex,face, options) % plot_spherical_triangulation - display a nice spherical triangulation % % plot_spherical_triangulation(svertex,face,options); % % Copyright (c) 2008 Gabriel Peyre options.null = 0; hold on; % draw a background sphere [X,Y,Z] = sphere(30); surf(X,Y...
github
jacksky64/imageProcessing-master
compute_mesh_weight.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/compute_mesh_weight.m
2,783
utf_8
435dabe64ab50ca5bf2c467bcbad6ab8
function W = compute_mesh_weight(vertex,face,type,options) % compute_mesh_weight - compute a weight matrix % % W = compute_mesh_weight(vertex,face,type,options); % % W is sparse weight matrix and W(i,j)=0 is vertex i and vertex j are not % connected in the mesh. % % type is either % 'combinatorial': W(i...
github
jacksky64/imageProcessing-master
perform_analysis_regularization.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_graph/toolbox/perform_analysis_regularization.m
2,585
utf_8
c15e65a8b4b77823cd42e992ac708563
function [g,g_list,E] = perform_analysis_regularization(f, G, options) % perform_analysis_regularization - perform a sparse regularization % % [g,g_list,E] = perform_analysis_regularization(f, A, options); % % Method solves, given f of length n, for % min_g E(g) = 1/2*|f-g|^2 + lambda * |A*g|_1 % where A is a...
github
jacksky64/imageProcessing-master
perform_synthesis_quilting.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_nlmeans/perform_synthesis_quilting.m
7,651
utf_8
8c411ddc2b26690849941b7d95f0b8ac
function Y = perform_synthesis_quilting(X, tilesize, n, overlap, err) % perform_synthesis_quilting - perform image synthesis % % Y = perform_synthesis_quilting(X, tilesize, n, overlap, err); % % The method is described in % ``Image Quilting for Texture Synthesis and Transfer'' % Alexei A. Efros and Wi...
github
jacksky64/imageProcessing-master
perform_wavelet_matching.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_nlmeans/toolbox/perform_wavelet_matching.m
4,232
utf_8
c08affe005c098a67fc7fbda0a77237e
function [M1,MW,MW1] = perform_wavelet_matching(M1,M,options) % perform_wavelet_matching - match multiscale histograms % % M1 = perform_wavelet_matching(M1,M,options); % % M1 is the image to synthesize. % M is the exemplar image. % % This function match the histogram of the image and the histogram % of each s...
github
jacksky64/imageProcessing-master
load_image.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_nlmeans/toolbox/load_image.m
12,502
utf_8
4d9dcb12e956804ea88dbe11fb8b6912
function M = load_image(type, n, options) % load_image - load benchmark images. % % M = load_image(name, n, options); % % name can be: % Synthetic images: % 'chessboard1', 'chessboard', 'square', 'disk', 'quaterdisk', '3contours', 'line', % 'line_vertical', 'line_horizontal', 'line_diagonal'...
github
jacksky64/imageProcessing-master
perform_histogram_equalization.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_nlmeans/toolbox/perform_histogram_equalization.m
7,968
utf_8
bcc84159668c38454a24a2574e13ac2b
function x = perform_histogram_equalization(x,y,options) % perform_histogram_equalization - perform histogram equalization % % x = perform_histogram_equalization(x,y,options); % % Change the values of x so that its ordered values match % the ordered values of y. % % You can set % options.cols=1 to operat...
github
jacksky64/imageProcessing-master
perform_blsgsm_denoising.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_nlmeans/toolbox/perform_blsgsm_denoising.m
41,741
utf_8
d7adcb441f0d91f470957d7d1083332f
function y = perform_blsgsm_denoising(x, options) % perform_blsgsm_denoising - denoise an image using BLS-GSM % % y = perform_blsgsm_denoising(x, options); % % BLS-GSM stands for "Bayesian Least Squares - Gaussian Scale Mixture". % % This function is a wrapper for the code of J.Portilla. % % You can change the ...
github
jacksky64/imageProcessing-master
perform_wavelet_transform.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_nlmeans/toolbox/perform_wavelet_transform.m
61,619
utf_8
ff04288ce6da8a2b6a0d33e1c20c57b6
function y = perform_wavelet_transform(x, Jmin, dir, options) % perform_wavelet_transform - wrapper to wavelab Wavelet transform (1D/2D and orthogonal/biorthogonal). % % y = perform_wavelet_transform(x, Jmin, dir, options); % % 'x' is either a 1D or a 2D array. % 'Jmin' is the minimum scale (i.e. the coar...
github
jacksky64/imageProcessing-master
medfilt2.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_nlmeans/toolbox/ordfilt2/medfilt2.m
4,441
utf_8
a78b7dbf3bc7c2a946de5e748467c722
function b = medfilt2(varargin) %MEDFILT2 Perform 2-D median filtering. % B = MEDFILT2(A,[M N]) performs median filtering of the matrix % A in two dimensions. Each output pixel contains the median % value in the M-by-N neighborhood around the corresponding % pixel in the input image. MEDFILT2 pads the imag...
github
jacksky64/imageProcessing-master
padarray.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_nlmeans/toolbox/ordfilt2/padarray.m
7,671
utf_8
489e5e1fb612ce595b1baac73abfb897
function b = padarray(varargin) %PADARRAY Pad an array. % B = PADARRAY(A,PADSIZE) pads array A with PADSIZE(k) number of zeros % along the k-th dimension of A. PADSIZE should be a vector of % positive integers. % % B = PADARRAY(A,PADSIZE,PADVAL) pads array A with PADVAL (a scalar) % instead of with ze...
github
jacksky64/imageProcessing-master
checkstrs.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_nlmeans/toolbox/ordfilt2/checkstrs.m
3,285
utf_8
ce89005e77c1e286eddbb59ed6c2d8b5
function out = checkstrs(in, valid_strings, function_name, ... variable_name, argument_position) %CHECKSTRS Check validity of option string. % OUT = CHECKSTRS(IN,VALID_STRINGS,FUNCTION_NAME,VARIABLE_NAME, ... % ARGUMENT_POSITION) checks the validity of the option string IN. It % ret...
github
jacksky64/imageProcessing-master
ordfilt2.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_nlmeans/toolbox/ordfilt2/ordfilt2.m
4,253
utf_8
1ead5ab3bf1749efe031d260f06b3578
function B = ordfilt2(varargin) %ORDFILT2 Perform 2-D order-statistic filtering. % B=ORDFILT2(A,ORDER,DOMAIN) replaces each element in A by the % ORDER-th element in the sorted set of neighbors specified by % the nonzero elements in DOMAIN. % % B = ORDFILT2(A,ORDER,DOMAIN,S), where S is the same size as...
github
jacksky64/imageProcessing-master
compute_butterfly_neighbors.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_wavelet_meshes/compute_butterfly_neighbors.m
1,398
utf_8
0a690efe10cc4cbba37565df43f15a2f
function [e,v,g] = compute_butterfly_neighbors(k, nj) % compute_butterfly_neighbors - compute local neighbors of a vertex % % [e,v,g] = compute_butterfly_neighbors(k, nj); % % This is for internal use. % % e are the 2 direct edge neighbors % v are the 2 indirect neighbors % g are the fare neighbors % % You nee...
github
jacksky64/imageProcessing-master
load_spherical_function.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_wavelet_meshes/load_spherical_function.m
1,810
utf_8
1999ea966df43f6770f67d42cee2a6f7
function f = load_spherical_function(name, pos, options) % load_spherical_function - load a function on the sphere % % f = load_spherical_function(name, pos, options); % % Copyright (c) 2007 Gabriel Peyre if iscell(pos) pos = pos{end}; end if size(pos,1)>size(pos,2) pos = pos'; end x = pos(1,:); x = x(:...
github
jacksky64/imageProcessing-master
perform_spherial_planar_sampling.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_wavelet_meshes/perform_spherial_planar_sampling.m
2,972
utf_8
76d71d45fe348bef0c0f7dd26434dc52
function posw = perform_spherial_planar_sampling(pos_sphere, sampling_type) % perform_spherial_planar_sampling - project sampling location from sphere to a square % % posw = perform_spherial_planar_sampling(pos_sphere, type) % % 'type' can be 'area' or 'gnomonic'. % % This is used to produced spherical geo...
github
jacksky64/imageProcessing-master
load_image.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_wavelet_meshes/toolbox/load_image.m
19,503
utf_8
16a3a912ce98f3734882ac9fe80494c2
function M = load_image(type, n, options) % load_image - load benchmark images. % % M = load_image(name, n, options); % % name can be: % Synthetic images: % 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line', % 'line_vertical', 'l...
github
jacksky64/imageProcessing-master
check_face_vertex.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_wavelet_meshes/toolbox/check_face_vertex.m
646
utf_8
fe3c5da3b1ca8f15eb7eed61acfc2259
function [vertex,face] = check_face_vertex(vertex,face, options) % check_face_vertex - check that vertices and faces have the correct size % % [vertex,face] = check_face_vertex(vertex,face); % % Copyright (c) 2007 Gabriel Peyre vertex = check_size(vertex); face = check_size(face); %%%%%%%%%%%%%%%%%%%%%%%%%%%%% f...
github
jacksky64/imageProcessing-master
compute_mesh_weight.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_wavelet_meshes/toolbox/compute_mesh_weight.m
2,820
utf_8
c90377b7ee516f5f952ce8c31dcfd43b
function W = compute_mesh_weight(vertex,face,type,options) % compute_mesh_weight - compute a weight matrix % % W = compute_mesh_weight(vertex,face,type,options); % % W is sparse weight matrix and W(i,j)=0 is vertex i and vertex j are not % connected in the mesh. % % type is either % 'combinatorial': W(i...
github
jacksky64/imageProcessing-master
plot_tensor_field.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_diffc/plot_tensor_field.m
5,736
utf_8
8e241783316bc4c13529031d81db17d4
function h = plot_tensor_field(H, M, options) % plot_tensor_field - display a tensor field % % h = plot_tensor_field(H, M, options); % % options.sub controls sub-sampling % options.color controls color % % Copyright (c) 2006 Gabriel Peyre if nargin<3 options.null = 0; end if not( isstruct(op...
github
jacksky64/imageProcessing-master
compute_structure_tensor.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_diffc/compute_structure_tensor.m
5,058
utf_8
606bd8981d5d25ac5b04496f5007d00b
function H = compute_structure_tensor(M,sigma1,sigma2, options) % compute_structure_tensor - compute the structure tensor % % T = compute_structure_tensor(M,sigma1,sigma2); % % sigma1 is pre smoothing width (in pixels). % sigma2 is post smoothing width (in pixels). % % Follows the ideas of % U. K?t...
github
jacksky64/imageProcessing-master
plot_tensor_field_nb.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_diffc/plot_tensor_field_nb.m
5,107
utf_8
5f6826cefc68c6e07eaf23afe0858e50
function h = plot_tensor_field(H, M, options) % plot_tensor_field - display a tensor field % % h = plot_tensor_field(H, M, options); % % options.sub controls sub-sampling % options.color controls color % % Copyright (c) 2006 Gabriel Peyre if nargin<3 options.null = 0; end if not( isstruct(op...
github
jacksky64/imageProcessing-master
load_image.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_diffc/toolbox/load_image.m
20,485
utf_8
59636d167046aad9d9e169c474427ee1
function M = load_image(type, n, options) % load_image - load benchmark images. % % M = load_image(name, n, options); % % name can be: % Synthetic images: % 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line', % 'line_vertical', 'l...
github
jacksky64/imageProcessing-master
compute_periodic_poisson.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_diffc/toolbox/compute_periodic_poisson.m
855
utf_8
52f67b893134bee2f5ec735f55733e1f
function G = compute_periodic_poisson(d, symmetrize) % compute_periodic_poisson - solve poisson equation % % G = compute_periodic_poisson(d,symmetrize); % % Solve % Delta(G) = d % with periodic boundary condition. % G has zero mean. % % Set symmetrize=1 (default 0) if the data divergence d is not peri...
github
jacksky64/imageProcessing-master
perform_windowed_fourier_transform.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/perform_windowed_fourier_transform.m
5,038
utf_8
96c27071ef4e8304b6051ed54d7ad8b8
function y = perform_windowed_fourier_transform(x,w,q,n, options) % perform_windowed_fourier_transform - compute a local Fourier transform % % Forward transform: % MF = perform_windowed_fourier_transform(M,w,q,n, options); % Backward transform: % M = perform_windowed_fourier_transform(MF,w,q,n, options); % % w ...
github
jacksky64/imageProcessing-master
load_hdr.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/load_hdr.m
4,928
utf_8
cdf17b3681f4c6902ed0f7de2ad31f7d
function [img, fileinfo] = read_hdr(filename) % load_hdr - loading a radiance RBGE file. % % [img, fileinfo] = read_rle_rgbe(filename); % % Written by Lawrence A. Taplin (taplin@cis.rit.edu) % % Based loosely on the c-code RGBE implementation written by Bruce Walters % http://www.graphics.cornell.edu/~bjw/rgbe.html ...
github
jacksky64/imageProcessing-master
load_image.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/load_image.m
21,410
utf_8
a83de39372a6892ac46820c6bea2e094
function M = load_image(type, n, options) % load_image - load benchmark images. % % M = load_image(name, n, options); % % name can be: % Synthetic images: % 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line', % 'line_vertical', 'l...
github
jacksky64/imageProcessing-master
grab_inpainting_mask.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/grab_inpainting_mask.m
3,717
utf_8
c160d95ddbbe80a15f290993fd6bac1a
function [U,point_list] = grab_inpainting_mask(M, options) % grab_inpainting_mask - create a mask from user input % % U = grab_inpainting_mask(M, options); % % Select set of point in an image (useful to select a region for % inpainting). The set of point is U==Inf. % % options.r is the radius for selection (de...
github
jacksky64/imageProcessing-master
change_color_mode.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/change_color_mode.m
7,483
utf_8
184fcadc594ac09e3b2a2086820890bb
function [M,ColorP] = change_color_mode(M,dir,options) % change_color_mode - change of color representation % % M = change_color_mode(M,dir,options); % % switch between RGB and another color mode. % % options.color_mode can be: % 'rgb' (no change), 'hsv', 'ycbcr', 'pca' % % For PCA you should proceed like th...
github
jacksky64/imageProcessing-master
compute_ssim_index.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/compute_ssim_index.m
19,068
utf_8
5e9683c1871d1245fa1be59a084a9927
function [mssim, ssim_map] = compute_ssim_index(img1, img2, K, window, L) %======================================================================== %SSIM Index, Version 1.0 %Copyright(c) 2003 Zhou Wang %All Rights Reserved. % %The author is with Howard Hughes Medical Institute, and Laboratory %for Computationa...
github
jacksky64/imageProcessing-master
perform_tv_hilbert_projection.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/perform_tv_hilbert_projection.m
3,727
utf_8
f96d06428439140dc4dc1f0182805595
function [u,v,px,py] = perform_tv_hilbert_projection(f,kernel,lam,options) % Aujol & Chambolle projection for solving TV-K regularization % % [u,v,px,py] = perform_tv_hilbert_projection(f,kernel,lam,options); % % Solve the image separation problem : % u = argmin_u |f-u|_K^2 + lam*|u|_TV % % f = u+v % u i...
github
jacksky64/imageProcessing-master
perform_tv_correction.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/perform_tv_correction.m
985
utf_8
e9637dd038c9c859b0c6dedd242fecae
function y = perform_tv_correction(x,T) % perform_tv_correction - perform correction of the image to that it minimizes the TV norm. % % y = perform_tv_correction(x,T); % % Perform correction using thresholding of haar wavelet coefficients on 1 % scale. % % Copyright (c) 2006 Gabriel Peyre n = size(x,1); Jmin ...
github
jacksky64/imageProcessing-master
compute_periodic_poisson.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/compute_periodic_poisson.m
855
utf_8
52f67b893134bee2f5ec735f55733e1f
function G = compute_periodic_poisson(d, symmetrize) % compute_periodic_poisson - solve poisson equation % % G = compute_periodic_poisson(d,symmetrize); % % Solve % Delta(G) = d % with periodic boundary condition. % G has zero mean. % % Set symmetrize=1 (default 0) if the data divergence d is not peri...
github
jacksky64/imageProcessing-master
perform_quincunx_interpolation.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/perform_quincunx_interpolation.m
1,537
utf_8
6d747ffd41f26abbb6804e53fb57335d
function Mi = perform_quincunx_interpolation(M,vm) % perform_quincunx_interpolation - interpolate data on a quincunx grid % % Mi = perform_quincunx_interpolation(M,vm); % % M is a 2D image where only pixels M(i+j,i-j) are available % (checkboard subsampling) % % vm is 2, 4 or 6 % % Copyright (c) 2008 Gabri...
github
jacksky64/imageProcessing-master
perform_windowed_dct_transform.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/perform_windowed_dct_transform.m
2,282
utf_8
9c456075e56465427a4442c1e5c9afc8
function y = perform_windowed_dct_transform(x,w,q,n, options) % perform_windowed_dct_transform - compute a local DCT transform % % Forward transform: % MF = perform_windowed_dct_transform(M,w,q,n, options); % Backward transform: % M = perform_windowed_dct_transform(MF,w,q,n, options); % % w is the width of the ...
github
jacksky64/imageProcessing-master
perform_windowed_dct4_transform.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/perform_windowed_dct4_transform.m
14,528
utf_8
14fb4b703d9af03093b3a48e38dceded
function y = perform_windowed_dct4_transform(x, w, dir, options) % perform_windowed_dct4_transform - orthogonal local DCT % % y = perform_windowed_dct4_transform(x, w, dir, options); % % This is an orthogonal transform, with x2 overlap, % note that the low frequencies are removes if options.remove_lowfreq = 1. % ...
github
jacksky64/imageProcessing-master
perform_dct_transform.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_image/toolbox/perform_dct_transform.m
7,750
utf_8
07f7ce84cf4f6dfc91ad645a17eab05c
function y = perform_dct_transform(x,dir) % perform_dct_transform - discrete cosine transform % % y = perform_dct_transform(x,dir); % % Copyright (c) 2006 Gabriel Peyre if size(x,1)==1 || size(x,2)==1 % 1D transform if dir==1 y = dct(x); else y = idct(x); end else if dir==1 ...
github
jacksky64/imageProcessing-master
dump_struct.m
.m
imageProcessing-master/Matlab imaging/Matlab toolbox/toolbox_misc/dump_struct.m
1,389
utf_8
746b6d65b8fc8c67e8cb806c235f5e6a
function fid = dump_struct(s,fid,header) % dump_struct - dump the content of a struct to a file % % dump_struct(s,fid, header); % % Copyright (c) 2008 Gabriel Peyre if nargin<3 header = ''; end if isstr(fid) fid = fopen(fid, 'a'); if fid<=0 error(['File ' fid ' does not exist.']); end en...
github
jacksky64/imageProcessing-master
pad.m
.m
imageProcessing-master/Matlab imaging/Extra/pad.m
2,742
utf_8
9bf9d823661a04611d1004e631e3b34c
function Y=pad(varargin) % PAD Pads matrix. % % Y = PAD(X,[Mi]) creates the matrix Y by expanding X and and % padding the new elements with zeros. X will be expanded Mi % elements in the directions -i and +i so that: % size(Y) = size(X) + 2*[Mi] % % If Mi is scalar the same value ...
github
jacksky64/imageProcessing-master
roll.m
.m
imageProcessing-master/Matlab imaging/Extra/roll.m
2,119
utf_8
ae0c1da9cb4a28bee3b76a6360a1646a
function Y = roll(varargin) % ROLL Rolls matrix elements. % y = ROLL(x,[Ri]) rolls matrix x Ri elements in dimension i. % The rolled matrix y is the same size as x. The last element % in each dimension is repeated to fill blank places % % Example: ROLL([1 2 3 4],1) = [1 1 2 3] % ROLL([1...
github
jacksky64/imageProcessing-master
scale.m
.m
imageProcessing-master/Matlab imaging/Extra/scale.m
790
utf_8
ebfcd3e0683fa90f71268707ae2275e8
function y = scale(varargin) % SCALE Scales matrix elements to a new range. % % y = SCALE(x,[min max]) scales the elements of matrix x to a new range % defined by [min, max]. % % y = SCALE(x) uses the default range = [0 1] % [x,Imin,Imax] = parse_inputs(varargin{:}); x = double(x); M = max(x(:))...
github
jacksky64/imageProcessing-master
nfft.m
.m
imageProcessing-master/Matlab imaging/Extra/nfft.m
2,978
utf_8
1ebdbe2e01ff9f619d743df60c2b62b6
function y = nfft(varargin) % NFFT Discrete Fourier transform. % Y = NFFT(X) returns the Fourier transform of matrix X % performing the visualization correction. % % Y = NFFT(X,MROWS) pads matrix X with zeros to size MROWS before transforming. % % Y = NFFT(X,MROWS,type) plots single sided(type='...
github
jacksky64/imageProcessing-master
resize.m
.m
imageProcessing-master/Matlab imaging/Extra/resize.m
1,810
utf_8
219f27dea979cbaf2d6f9a7720824227
function Y = resize(varargin) % RESIZE Resizes an matrix. % % Y = RESIZE(X,[R1 R2 ... Rn]) creates the matrix Y containing the elements of X % which are at indexes m*Ri+1 (m = 0,1,2,..) at dimension i. % Y = RESIZE(X, R) is the same as Y = RESIZE(X,[R R ... R]). % % Y = RESIZE(X,[L1 L2 ... L...
github
jacksky64/imageProcessing-master
vanherk.m
.m
imageProcessing-master/Matlab imaging/Extra/vanherk.m
4,841
utf_8
5b0cf60c12e2432af9a978d4bad7ff3b
function Y = vanherk(X,N,TYPE,varargin) % VANHERK Fast max/min 1D filter % % Y = VANHERK(X,N,TYPE) performs the 1D max/min filtering of the row % vector X using a N-length filter. % The filtering type is defined by TYPE = 'max' or 'min'. This function % uses the van Herk algorithm for min/max filt...
github
jacksky64/imageProcessing-master
grow.m
.m
imageProcessing-master/Matlab imaging/Extra/grow.m
2,699
utf_8
98b0c97617d00069de86838244622d83
function Y = grow(varargin) % % GROW Expands a matrix. % % Y = GROW(X,[M1 M2 ... Mn]) creates a matrix 'Y' by the expansion % of the matrix 'x' of Mi elements on directions i e -i. The size % of the new matrix 'Y' will be: % size(Y) = size(x) + 2*[M] % % Example: X = [ 1 2 3; 4 5 6; 7 8 9] %...
github
jacksky64/imageProcessing-master
posterize.m
.m
imageProcessing-master/Matlab imaging/Extra/posterize.m
2,427
utf_8
a008b17a4f649fdcad5fbbd48d8dabde
function Y = posterize(varargin) % % POSTERIZE Reduces number of colors in an image. % % Y = POSTERIZE(X,N) creates the image Y by reduncing the number % of different colors of X to N. The N color values of Y are evenly % spaced in the same range as the values of X, however Y has only N % differen...
github
jacksky64/imageProcessing-master
maxfilt2.m
.m
imageProcessing-master/Matlab imaging/Extra/maxfilt2.m
1,849
utf_8
45cc67fb2afee0dc77cfc7798629574f
function Y = maxfilt2(X,varargin) % MAXFILT2 Two-dimensional max filter % % Y = MAXFILT2(X,[M N]) performs two-dimensional maximum % filtering on the image X using an M-by-N window. The result % Y contains the maximun value in the M-by-N neighborhood around % each pixel in the original image. ...
github
jacksky64/imageProcessing-master
minfilt2.m
.m
imageProcessing-master/Matlab imaging/Extra/minfilt2.m
1,849
utf_8
99705de3e51cb81a30a34c274cf65366
function Y = minfilt2(X,varargin) % MINFILT2 Two-dimensional min filter % % Y = MINFILT2(X,[M N]) performs two-dimensional minimum % filtering on the image X using an M-by-N window. The result % Y contains the minimun value in the M-by-N neighborhood around % each pixel in the original image. ...
github
jacksky64/imageProcessing-master
plotline.m
.m
imageProcessing-master/Matlab imaging/Extra/plotline.m
1,778
utf_8
44ac4c98d32432076d5d7b9c745300e3
function y = plotline(x,d,varargin) % PLOTLINE Plots a vertical or horizontal line % % PLOTLINE(x,dir) plots a horizontal (dir='h') or vertical (dir='v') % dotted line at position x on the current figure. % % PLOTLINE(x,dir,S) uses plots the line using the specified color and % linestyle. S is a s...
github
jacksky64/imageProcessing-master
nfft2.m
.m
imageProcessing-master/Matlab imaging/Extra/nfft2.m
2,714
utf_8
246579cf697dfb614364498b06c06386
function [varargout] = nfft2(varargin) % % NFFT2 Two-dimensional discrete Fourier Transform. % % Y = NFFT2(X) returns the two-dimensional Fourier transform of matrix X % performing the visualization correction. % % Y = NFFT2(X,MROWS,NCOLS) pads matrix X with zeros to size MROWS-by-NCOLS % before t...
github
jacksky64/imageProcessing-master
thomas.m
.m
imageProcessing-master/Matlab imaging/Extra/thomas.m
3,148
utf_8
4b9db75fb4b91a56471d767ec26e0adb
function x = thomas(varargin) % THOMAS Solves a tridiagonal linear system % % x = THOMAS(A,d) solves a tridiagonal linear system using the very efficient % Thomas Algorith. The vector x is the returned answer. % % A*x = d; / a1 b1 0 0 0 ... 0 \ / x1 \ / d1 \ % ...
github
jacksky64/imageProcessing-master
toggle.m
.m
imageProcessing-master/Matlab imaging/Extra/toggle.m
2,005
utf_8
96627feed2dcff5c420f0cdec2df8801
function Y = toggle(varargin) % TOGGLE Matrix elements classification. % % Y = TOGGLE(X,X1,X2) generates the binary matrix Y by comparing % each element of the matrix X with X1 and X2. If the element of % X is closer to the element of X1, the corresponding element of % Y will be zero. Otherwise if the e...
github
jacksky64/imageProcessing-master
colormapc.m
.m
imageProcessing-master/Matlab imaging/Extra/colormapc.m
1,625
utf_8
bf7ec4fa92fbcd4ccc19569cee309220
function Y = colormapc(varargin) % COLORMAPC Circular colormap % % Y = COLORMAPC(T) creates a circular colormap type T. Circular colormaps % are build so that the first and last colors are the same. This kind of % colormap is useful for ploting angle images which have a circular behavior % (0 = 2*pi...
github
jacksky64/imageProcessing-master
noise.m
.m
imageProcessing-master/Matlab imaging/Extra/noise.m
4,300
utf_8
462689c50cc2ff1e7f79053cede6d16b
function y = noise(varargin) % NOISE Adds noise to an image. % % NOISE creates a new image by adding noise to the original image. % NOISE can be used to any matrix (1D, 2D, 3D, nD) % % Noisetypes are: % 'ag' : additive gaussian (default) 'au' : additive uniform % 'mg' : multiplica...
github
jacksky64/imageProcessing-master
imagem.m
.m
imageProcessing-master/Matlab imaging/Extra/imagem.m
3,626
utf_8
1780eff1083db2a93964e4dc0cb295ca
function varargout = imagem(varargin) % IMAGEM Displays image and marker. % % IMAGEM(X,M) displays the grayscale or RGB image X and superimposes the % b/w image M to it. The image M is intended to be a marker image of % some characteristics of X. X and M must have the same size. % % IMAGEM(X,M1,M2...
github
jacksky64/imageProcessing-master
sp3Filters.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/sp3Filters.m
17,188
utf_8
a3514d77e5a92b96d96197ebad343395
% Steerable pyramid filters. Transform described in: % % @INPROCEEDINGS{Simoncelli95b, % TITLE = "The Steerable Pyramid: A Flexible Architecture for % Multi-Scale Derivative Computation", % AUTHOR = "E P Simoncelli and W T Freeman", % BOOKTITLE = "Second Int'l Conf on Image Processing", % ADDRESS = "Washington, DC"...
github
jacksky64/imageProcessing-master
buildWpyr.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/buildWpyr.m
2,644
utf_8
e741b2037d9a1358d4de94580ebcc4bf
% [PYR, INDICES] = buildWpyr(IM, HEIGHT, FILT, EDGES) % % Construct a separable orthonormal QMF/wavelet pyramid on matrix (or vector) IM. % % HEIGHT (optional) specifies the number of pyramid levels to build. Default % is maxPyrHt(IM,FILT). You can also specify 'auto' to use this value. % % FILT (optional) can be a st...
github
jacksky64/imageProcessing-master
reconLpyr.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/reconLpyr.m
2,049
utf_8
657b8012a1ed06b6573496855309b2ae
% RES = reconLpyr(PYR, INDICES, LEVS, FILT2, EDGES) % % Reconstruct image from Laplacian pyramid, as created by buildLpyr. % % PYR is a vector containing the N pyramid subbands, ordered from fine % to coarse. INDICES is an Nx2 matrix containing the sizes of % each subband. This is compatible with the MatLab Wavelet t...
github
jacksky64/imageProcessing-master
mkDisc.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/mkDisc.m
1,428
utf_8
c6acae0ac1aa738b7ef094eb2ac60f52
% IM = mkDisc(SIZE, RADIUS, ORIGIN, TWIDTH, VALS) % % Make a "disk" image. SIZE specifies the matrix size, as for % zeros(). RADIUS (default = min(size)/4) specifies the radius of % the disk. ORIGIN (default = (size+1)/2) specifies the % location of the disk center. TWIDTH (in pixels, default = 2) % specifies th...
github
jacksky64/imageProcessing-master
spyrHigh.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/spyrHigh.m
189
utf_8
3132a747e0c7bf1879bb32e4d5fda257
% RES = spyrHigh(PYR, INDICES) % % Access the highpass residual band from a steerable pyramid. % Eero Simoncelli, 6/96. function res = spyrHigh(pyr,pind) res = pyrBand(pyr, pind, 1);
github
jacksky64/imageProcessing-master
mkImpulse.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/mkImpulse.m
529
utf_8
cf6f3809cb123791501bb0e92845a0c6
% IM = mkImpulse(SIZE, ORIGIN, AMPLITUDE) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing a single non-zero entry, at position ORIGIN (defaults to % ceil(size/2)), of value AMPLITUDE (defaults to 1). % Eero Simoncelli, 6/96. function [res] = mkImpulse(sz, origin, amplitude) sz = s...
github
jacksky64/imageProcessing-master
rconv2.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/rconv2.m
1,435
utf_8
da3a54d6c7b1ac17c78eab0a4a7648d9
% RES = RCONV2(MTX1, MTX2, CTR) % % Convolution of two matrices, with boundaries handled via reflection % about the edge pixels. Result will be of size of LARGER matrix. % % The origin of the smaller matrix is assumed to be its center. % For even dimensions, the origin is determined by the CTR (optional) % argument:...
github
jacksky64/imageProcessing-master
mkR.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/mkR.m
775
utf_8
504bc90f67c72730edc4a9d86630bdf2
% IM = mkR(SIZE, EXPT, ORIGIN) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing samples of a radial ramp function, raised to power EXPT % (default = 1), with given ORIGIN (default = (size+1)/2, [1 1] = % upper left). All but the first argument are optional. % Eero Simoncelli, 6/96....
github
jacksky64/imageProcessing-master
blur.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/blur.m
1,731
utf_8
a2dc57fdfe85f98549b2f7ddf721c298
% RES = blur(IM, LEVELS, FILT) % % Blur an image, by filtering and downsampling LEVELS times % (default=1), followed by upsampling and filtering LEVELS times. The % blurring is done with filter kernel specified by FILT (default = % 'binom5'), which can be a string (to be passed to namedFilter), a % vector (applied sep...
github
jacksky64/imageProcessing-master
pyrBand.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/pyrBand.m
395
utf_8
39c1e3772426a1362119d302d9767a24
% RES = pyrBand(PYR, INDICES, BAND_NUM) % % Access a subband from a pyramid (gaussian, laplacian, QMF/wavelet, % or steerable). Subbands are numbered consecutively, from finest % (highest spatial frequency) to coarsest (lowest spatial frequency). % Eero Simoncelli, 6/96. function res = pyrBand(pyr, pind, band) re...
github
jacksky64/imageProcessing-master
kurt2.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/kurt2.m
551
utf_8
cd20c1a5155cba8de454011552ec4f2a
% K = KURT2(MTX,MEAN,VAR) % % Sample kurtosis (fourth moment divided by squared variance) % of a matrix. Kurtosis of a Gaussian distribution is 3. % MEAN (optional) and VAR (optional) make the computation faster. % Eero Simoncelli, 6/96. function res = kurt2(mtx, mn, v) if (exist('mn') ~= 1) mn = mean(mean(mtx)...
github
jacksky64/imageProcessing-master
buildSpyr.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/buildSpyr.m
2,064
utf_8
b0caf60e63a52aa734956dd74ea39f95
% [PYR, INDICES, STEERMTX, HARMONICS] = buildSpyr(IM, HEIGHT, FILTFILE, EDGES) % % Construct a steerable pyramid on matrix IM. Convolutions are % done with spatial filters. % % HEIGHT (optional) specifies the number of pyramid levels to build. Default % is maxPyrHt(size(IM),size(FILT)). % You can also specify 'auto' ...
github
jacksky64/imageProcessing-master
setPyrBand.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/setPyrBand.m
1,049
utf_8
76554eb735e969097a4723a508facd37
% NEWPYR = setPyrBand(PYR, INDICES, NEWBAND, BAND_NUM) % % Insert an image (BAND) into a pyramid (gaussian, laplacian, QMF/wavelet, % or steerable). Subbands are numbered consecutively, from finest % (highest spatial frequency) to coarsest (lowest spatial frequency). % Eero Simoncelli, 1/03. function pyr = setPyrB...
github
jacksky64/imageProcessing-master
var2.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/var2.m
390
utf_8
de26727e055081aa670024c273f0e885
% V = VAR2(MTX,MEAN) % % Sample variance of a matrix. % Passing MEAN (optional) makes the calculation faster. function res = var2(mtx, mn) if (exist('mn') ~= 1) mn = mean2(mtx); end if (isreal(mtx)) res = sum(sum(abs(mtx-mn).^2)) / max((prod(size(mtx)) - 1),1); else res = sum(sum(real(mtx-mn).^2)) + i*sum(su...
github
jacksky64/imageProcessing-master
reconSFpyrLevs.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/reconSFpyrLevs.m
2,016
utf_8
ff83a4f3d2f0927dcaa8851535e6b20a
% RESDFT = reconSFpyrLevs(PYR,INDICES,LOGRAD,XRCOS,YRCOS,ANGLE,NBANDS,LEVS,BANDS) % % Recursive function for reconstructing levels of a steerable pyramid % representation. This is called by reconSFpyr, and is not usually % called directly. % Eero Simoncelli, 5/97. function resdft = reconSFpyrLevs(pyr,pind,log_rad,Xr...
github
jacksky64/imageProcessing-master
rcosFn.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/rcosFn.m
1,122
utf_8
36283e0a34f1baf7ea2c5e6cb23aab89
% [X, Y] = rcosFn(WIDTH, POSITION, VALUES) % % Return a lookup table (suitable for use by INTERP1) % containing a "raised cosine" soft threshold function: % % Y = VALUES(1) + (VALUES(2)-VALUES(1)) * % cos^2( PI/2 * (X - POSITION + WIDTH)/WIDTH ) % % WIDTH is the width of the region over which the tra...
github
jacksky64/imageProcessing-master
wpyrLev.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/wpyrLev.m
729
utf_8
77f309b76f98f3421e786fde4fe2d429
% [LEV,IND] = wpyrLev(PYR,INDICES,LEVEL) % % Access a level from a separable QMF/wavelet pyramid. % Return as an SxB matrix, B = number of bands, S = total size of a band. % Also returns an Bx2 matrix containing dimensions of the subbands. % Eero Simoncelli, 6/96. function [lev,ind] = wpyrLev(pyr,pind,level) if ((p...
github
jacksky64/imageProcessing-master
binomialFilter.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/binomialFilter.m
309
utf_8
47b67219b2519bd65a435f3df318d41a
% KERNEL = binomialFilter(size) % % Returns a vector of binomial coefficients of order (size-1) . % Eero Simoncelli, 2/97. function [kernel] = binomialFilter(sz) if (sz < 2) error('size argument must be larger than 1'); end kernel = [0.5 0.5]'; for n=1:sz-2 kernel = conv([0.5 0.5]', kernel); end
github
jacksky64/imageProcessing-master
cconv2.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/cconv2.m
1,325
utf_8
8e564b623ba5cebd51e585eac6c66ba8
% RES = CCONV2(MTX1, MTX2, CTR) % % Circular convolution of two matrices. Result will be of size of % LARGER vector. % % The origin of the smaller matrix is assumed to be its center. % For even dimensions, the origin is determined by the CTR (optional) % argument: % CTR origin % 0 DIM/2 (defaul...
github
jacksky64/imageProcessing-master
reconSCFpyr.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/reconSCFpyr.m
4,475
utf_8
a0a6a06af4b5c9f7aa195bb8188fc754
% RES = reconSCFpyr(PYR, INDICES, LEVS, BANDS, TWIDTH) % % The inverse of buildSCFpyr: Reconstruct image from its complex steerable pyramid representation, % in the Fourier domain. % % The image is reconstructed by forcing the complex subbands to be analytic % (zero on half of the 2D Fourier plane, as they are supossed...
github
jacksky64/imageProcessing-master
buildSCFpyr.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/buildSCFpyr.m
2,713
utf_8
d94b4004138b50b6651511e8ba6ccb93
% [PYR, INDICES, STEERMTX, HARMONICS] = buildSCFpyr(IM, HEIGHT, ORDER, TWIDTH) % % This is a modified version of buildSFpyr, that constructs a % complex-valued steerable pyramid using Hilbert-transform pairs % of filters. Note that the imaginary parts will *not* be steerable. % % To reconstruct from this representati...
github
jacksky64/imageProcessing-master
showIm.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/showIm.m
6,111
utf_8
15fbbf55e2fd54e3f48ca936e23c3f32
% RANGE = showIm (MATRIX, RANGE, ZOOM, LABEL, NSHADES ) % % Display a MatLab MATRIX as a grayscale image in the current figure, % inside the current axes. If MATRIX is complex, the real and imaginary % parts are shown side-by-side, with the same grayscale mapping. % % If MATRIX is a string, it should be the name of...
github
jacksky64/imageProcessing-master
pyrLow.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/pyrLow.m
287
utf_8
b3514ec06e2e106d7b61e534cac20a8e
% RES = pyrLow(PYR, INDICES) % % Access the lowpass subband from a pyramid % (gaussian, laplacian, QMF/wavelet, steerable). % Eero Simoncelli, 6/96. function res = pyrLow(pyr,pind) band = size(pind,1); res = reshape( pyr(pyrBandIndices(pind,band)), pind(band,1), pind(band,2) );
github
jacksky64/imageProcessing-master
pgmRead.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/pgmRead.m
1,259
utf_8
6f07c13cf0f5d8930a46ac0d778bf86f
% IM = pgmRead( FILENAME ) % % Load a pgm image into a MatLab matrix. % This format is accessible from the XV image browsing utility. % Only works for 8bit gray images (raw or ascii) % Hany Farid, Spring '96. Modified by Eero Simoncelli, 6/96. function im = pgmRead( fname ); [fid,msg] = fopen( fname, 'r' ); ...
github
jacksky64/imageProcessing-master
upConv.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/upConv.m
2,779
utf_8
34137e966f38700416bfb0ebb72663ee
% RES = upConv(IM, FILT, EDGES, STEP, START, STOP, RES) % % Upsample matrix IM, followed by convolution with matrix FILT. These % arguments should be 1D or 2D matrices, and IM must be larger (in % both dimensions) than FILT. The origin of filt % is assumed to be floor(size(filt)/2)+1. % % EDGES is a string determinin...
github
jacksky64/imageProcessing-master
mean2.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/mean2.m
97
utf_8
cacc007ef6e32ba40a1e0da3b3d80a0e
% M = MEAN2(MTX) % % Sample mean of a matrix. function res = mean2(mtx) res = mean(mean(mtx));
github
jacksky64/imageProcessing-master
range2.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/range2.m
523
utf_8
b9f23c3a4f73bf568a1b5793f516aa80
% [MIN, MAX] = range2(MTX) % % Compute minimum and maximum values of MTX, returning them as a 2-vector. % Eero Simoncelli, 3/97. function [mn, mx] = range2(mtx) %% NOTE: THIS CODE IS NOT ACTUALLY USED! (MEX FILE IS CALLED INSTEAD) fprintf(1,'WARNING: You should compile the MEX version of "range2.c",\n found...
github
jacksky64/imageProcessing-master
buildSCFpyrLevs.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/buildSCFpyrLevs.m
2,187
utf_8
26747285064a0eaa2f3db75013e80849
% [PYR, INDICES] = buildSCFpyrLevs(LODFT, LOGRAD, XRCOS, YRCOS, ANGLE, HEIGHT, NBANDS) % % Recursive function for constructing levels of a steerable pyramid. This % is called by buildSCFpyr, and is not usually called directly. % Original code: Eero Simoncelli, 5/97. % Modified by Javier Portilla to generate complex b...
github
jacksky64/imageProcessing-master
clip.m
.m
imageProcessing-master/Matlab imaging/matlabPyrTools/clip.m
814
utf_8
13c82937ba69d5bc8c94b2ccca783e1b
% [RES] = clip(IM, MINVALorRANGE, MAXVAL) % % Clip values of matrix IM to lie between minVal and maxVal: % RES = max(min(IM,MAXVAL),MINVAL) % The first argument can also specify both min and max, as a 2-vector. % If only one argument is passed, the range defaults to [0,1]. function res = clip(im, minValOrRange, m...