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 | jihe6800/BaaS-master | adapt_grid.m | .m | BaaS-master/FD-AD/Problem3/Problem3II/adapt_grid.m | 1,484 | utf_8 | dc4c73ef38749655ee62df15ed7c881b | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | BSeuLocVolII_FDA.m | .m | BaaS-master/FD-AD/Problem3/Problem3II/BSeuLocVolII_FDA.m | 2,121 | utf_8 | 8925f3897d4ce31daf1e8ee2752df507 | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any la... |
github | jihe6800/BaaS-master | localvol.m | .m | BaaS-master/FD-AD/Problem3/Problem3II/localvol.m | 3,749 | utf_8 | 1e9b00921ac4b3579afbcb42147ac14a | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any la... |
github | jihe6800/BaaS-master | generatematrix.m | .m | BaaS-master/FD-AD/Problem3/Problem3II/generatematrix.m | 1,911 | utf_8 | 292957a3ef5a1410204ec4e8c46a387b | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | create_cont_h.m | .m | BaaS-master/FD-AD/Problem3/Problem3II/create_cont_h.m | 1,498 | utf_8 | 6afcd48b10a004d5d953702af8d0fc57 | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | adaption.m | .m | BaaS-master/FD-AD/Problem3/Problem3II/adaption.m | 3,958 | utf_8 | 9fe80853568e8b60d40aaf832f597efa | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | BSeuLocVolI_FDA.m | .m | BaaS-master/FD-AD/Problem3/Problem3I/BSeuLocVolI_FDA.m | 1,962 | utf_8 | 706d1e1e5886b3f8f606a10db19a7479 | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any la... |
github | jihe6800/BaaS-master | add_more_points.m | .m | BaaS-master/FD-AD/Problem3/Problem3I/add_more_points.m | 1,509 | utf_8 | 9241cce9be0c3ee1d5a501f2eb9964b2 | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | BDF2_direct.m | .m | BaaS-master/FD-AD/Problem3/Problem3I/BDF2_direct.m | 1,893 | utf_8 | 1b4b964a756d2a73f1639e3bf4ae938b | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | payoff.m | .m | BaaS-master/FD-AD/Problem3/Problem3I/payoff.m | 775 | utf_8 | ffed690786d7b7b54caeb7d11af62804 | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | adapt_grid.m | .m | BaaS-master/FD-AD/Problem3/Problem3I/adapt_grid.m | 1,496 | utf_8 | 1c9e9554ab07a2b2c86fcfb7c0a5bf74 | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | locvolI.m | .m | BaaS-master/FD-AD/Problem3/Problem3I/locvolI.m | 817 | utf_8 | 491b609be3e5666fa65e564542b2708d | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | generatematrix.m | .m | BaaS-master/FD-AD/Problem3/Problem3I/generatematrix.m | 1,919 | utf_8 | 42eefa6ca8b6280d18ab3ffcbdb364fe | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | create_cont_h.m | .m | BaaS-master/FD-AD/Problem3/Problem3I/create_cont_h.m | 1,500 | utf_8 | ebd269c1c274f28a4f0a4b63ccbc5672 | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | adaption.m | .m | BaaS-master/FD-AD/Problem3/Problem3I/adaption.m | 3,961 | utf_8 | de244209d8d2494b2ee574da6f6be744 | %Copyright (C) 2015 Lina von Sydow
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ve... |
github | jihe6800/BaaS-master | Table_2.m | .m | BaaS-master/BENCHOP/Table_2.m | 8,224 | utf_8 | 97e6f00b962d21d8e7967785d4455ebf | % Copyright (c) 2015, BENCHOP, Slobodan Milovanović
% All rights reserved.
% This MATLAB code has been written for the BENCHOP project.
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are
% met:
% * Redistributions of source co... |
github | jihe6800/BaaS-master | Table_task.m | .m | BaaS-master/BENCHOP/Table_task.m | 9,534 | utf_8 | 8104159725c2834f9a8760d1b6c44a9f | % Copyright (c) 2015, BENCHOP, Slobodan Milovanović
% All rights reserved.
% This MATLAB code has been written for the BENCHOP project.
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are
% met:
% * Redistributions of source co... |
github | jihe6800/BaaS-master | executor.m | .m | BaaS-master/BENCHOP/executor.m | 2,458 | utf_8 | 272a916b3d1d22b8c6e90b0c661a4f26 | % Copyright (c) 2015, BENCHOP, Slobodan Milovanović
% All rights reserved.
% This MATLAB code has been written for the BENCHOP project.
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are
% met:
% * Redistributions of source co... |
github | jihe6800/BaaS-master | BSeuCallDD_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuCallDD_rfd.m | 2,088 | utf_8 | 9a9da888ce18870ea50326c994ecfa78 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | MRTeuCall_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/MRTeuCall_rfd.m | 3,283 | utf_8 | c17e6e1c4836c79088f8281f300a79cc | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuLocVolII_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuLocVolII_rfd.m | 2,359 | utf_8 | 00a8d6519e86de8b33adcd446c375b55 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuCallUII_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuCallUII_rfd.m | 2,052 | utf_8 | befb978b3066e8858ba47b1a5a5deb44 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSamPutUI_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSamPutUI_rfd.m | 1,933 | utf_8 | eebd03bde50888a701aaaf8f5765ce58 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSamPutUII_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSamPutUII_rfd.m | 2,192 | utf_8 | 40a7d8ae2fcc8b54c472e5e9c290b782 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | HSTeuCall_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/HSTeuCall_rfd.m | 3,137 | utf_8 | dd14d838625af8f68a3247e1798d21dc | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuLocVolI_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuLocVolI_rfd.m | 2,146 | utf_8 | 9cbf361088906779723e83ce184d1158 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSupoutCallII_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSupoutCallII_rfd.m | 2,091 | utf_8 | 2b4ed3df26120d2beb1f1007aa7b9994 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuCallspread_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuCallspread_rfd.m | 3,042 | utf_8 | 8ee1b2f989801f1fe0d025f6f84ffc1f | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSupoutCallI_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSupoutCallI_rfd.m | 1,609 | utf_8 | 79cbdc0caff513b08c9b8c180a3f7ebb | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuCallGammaI_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuCallGammaI_rfd.m | 1,891 | utf_8 | b6d57ed807db18aa53568a103f205a58 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSamCallDD_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSamCallDD_rfd.m | 2,399 | utf_8 | 15b9e38921d16cf18d63b31e81c3626c | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuCallGammaII_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuCallGammaII_rfd.m | 2,012 | utf_8 | 5264ee1bbe2f6b8129454c91d1ec5136 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuCallUI_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuCallUI_rfd.m | 1,923 | utf_8 | 1e3df738ba7fe1eacd20b2d1b544c3b1 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuCallDeltaII_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuCallDeltaII_rfd.m | 2,047 | utf_8 | 1161f6c58eed3b03566924a6413c9aca | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuCallDeltaI_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuCallDeltaI_rfd.m | 1,890 | utf_8 | 567f1f7b8ac277af344c7d06e4f873b4 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuCallVegaI_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuCallVegaI_rfd.m | 941 | utf_8 | cf02490fcaf5dd99c3c98978e815a6e5 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSeuCallVegaII_rfd.m | .m | BaaS-master/BENCHOP/FD-NU/BSeuCallVegaII_rfd.m | 938 | utf_8 | 188f462821d2ec35d057781159ef4905 | %Copyright (C) 2015 Jari Toivanen
%This file is part of BENCHOP.
%BENCHOP is free software: you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation, either version 3 of the License, or
%(at your option) any later ver... |
github | jihe6800/BaaS-master | BSamPutUII_COS.m | .m | BaaS-master/BENCHOP/COS/BSamPutUII_COS.m | 5,225 | utf_8 | 4bf57f5e355d16c623a0b103cf8d019c | function [U] = BSamPutUII_COS(S,K,T,r,sig)
% BENCHOP Problem 1: The Black-Scholes-Merton model for one underlying asset
% BSamPutUII_COS computes the price for an American put option (Challenging parameters)
%
% Input: S - Initial asset price
% K - Strike price
% T - Terminal... |
github | jihe6800/BaaS-master | BSamPutUI_COS.m | .m | BaaS-master/BENCHOP/COS/BSamPutUI_COS.m | 5,252 | utf_8 | c75980435c322163fe4ad97d8ceeb0f4 | function [U] = BSamPutUI_COS(S,K,T,r,sig)
% BENCHOP Problem 1: The Black-Scholes-Merton model for one underlying asset
% BSamPutUI_COS computes the price for an American put option (Standard parameters)
%
% Input: S - Initial asset price
% K - Strike price
% T - Terminal time... |
github | karaimer/camera-pipeline-denoising-experiment-master | BM3DDEB.m | .m | camera-pipeline-denoising-experiment-master/BM3D/BM3DDEB.m | 17,170 | utf_8 | 1ca4e4613bf8a4a204335f69e5b9a1ca | function [ISNR, y_hat_RWI] = BM3DDEB(experiment_number, test_image_name)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Copyright (c) 2008-2014 Tampere University of Technology. All rights reserved.
% This work should only be used for nonprofit purposes.
%
% AUTHORS:
% Kostadin Dabov... |
github | karaimer/camera-pipeline-denoising-experiment-master | CBM3D.m | .m | camera-pipeline-denoising-experiment-master/BM3D/CBM3D.m | 28,850 | utf_8 | 486a1971ea1cf0631b0f9a9825496f84 | function [PSNR, yRGB_est] = CBM3D(yRGB, zRGB, sigma, profile, print_to_screen, colorspace)
%
% CBM3D is algorithm for attenuation of additive white Gaussian noise from
% color RGB images. This algorithm reproduces the results from the article:
%
% [1] K. Dabov, A. Foi, V. Katkovnik, and K. Egiazarian, "Color image
... |
github | karaimer/camera-pipeline-denoising-experiment-master | BM3D.m | .m | camera-pipeline-denoising-experiment-master/BM3D/BM3D.m | 22,757 | utf_8 | ab394ac4a36ae629580a56a444c05b80 | function [PSNR, y_est] = BM3D(y, z, sigma, profile, print_to_screen)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% BM3D is an algorithm for attenuation of additive white Gaussian noise from
% grayscale images. This algorithm reproduces the results from the article:
%
% [1] K. Dab... |
github | karaimer/camera-pipeline-denoising-experiment-master | Demo_IDDBM3D.m | .m | camera-pipeline-denoising-experiment-master/BM3D/IDDBM3D/Demo_IDDBM3D.m | 9,075 | utf_8 | 63f29d784cd5db8dfd6a710b83cc66e5 | function [isnr, y_hat] = Demo_IDDBM3D(experiment_number, test_image_name)
% ------------------------------------------------------------------------------------------
%
% Demo software for BM3D-frame based image deblurring
% Public release ver. 0.8 (beta) (June 03, 2011)
%
% -------------------------... |
github | karaimer/camera-pipeline-denoising-experiment-master | function_CreateLPAKernels.m | .m | camera-pipeline-denoising-experiment-master/BM3D/BM3D-SAPCA/function_CreateLPAKernels.m | 5,075 | utf_8 | 5036e27fea466f53341e109a39c29786 | % Creates LPA kernels cell array (function_CreateLPAKernels)
%
% Alessandro Foi - Tampere University of Technology - 2003-2005
% ---------------------------------------------------------------
%
% Builds kernels cell arrays kernels{direction,size}
% and kernels_higher_order{direction,size,1:... |
github | karaimer/camera-pipeline-denoising-experiment-master | function_Window2D.m | .m | camera-pipeline-denoising-experiment-master/BM3D/BM3D-SAPCA/function_Window2D.m | 2,242 | utf_8 | 514b002214f1f4efa8ff48a3997efcfd | % Returns a scalar/matrix weights (window function) for the LPA estimates
% function w=function_Window2D(X,Y,window,sig_wind, beta);
% X,Y scalar/matrix variables
% window - type of the window weight
% sig_wind - std scaling for the Gaussian ro-weight
% beta -parameter of the degree in the weights
%--------------------... |
github | karaimer/camera-pipeline-denoising-experiment-master | function_LPAKernelMatrixTheta.m | .m | camera-pipeline-denoising-experiment-master/BM3D/BM3D-SAPCA/function_LPAKernelMatrixTheta.m | 6,268 | utf_8 | 3f5b0af0d5c8ac49f518f547b0de78da | % Return the discrete kernels for LPA estimation and their degrees matrix
%
% function [G, G1, index_polynomials]=function_LPAKernelMatrixTheta(h2,h1,window_type,sig_wind,TYPE,theta, m)
%
%
% Outputs:
%
% G kernel for function estimation
% G1 kernels for function and derivative estimation
% G1(:,:,j), j=1 for fu... |
github | z-harry-sun/TattDL-master | voc_eval.m | .m | TattDL-master/lib/datasets/VOCdevkit-matlab-wrapper/voc_eval.m | 1,389 | utf_8 | fd77d0da53b2585aa65e0da5edc5fe33 | function res = voc_eval(path, comp_id, test_set, output_dir, rm_res)
VOCopts = get_voc_opts(path);
VOCopts.testset = test_set;
for i = 1:length(VOCopts.classes)
cls = VOCopts.classes{i};
res(i) = voc_eval_cls(cls, VOCopts, comp_id, output_dir, rm_res);
end
fprintf('\n~~~~~~~~~~~~~~~~~~~~\n');
fprintf('Results:\n... |
github | strotherlab/oppni-master | run_oppni_local.m | .m | oppni-master/run_oppni_local.m | 3,867 | utf_8 | 097d7917a5f832cc01c6e1df2bab19e1 | function run_oppni_local( subject_inputs, pipelines, analysis_model, TR_MSEC, contrast_list, TEMPLATE_VOL, VOXDIMS, DEOBLIQUE, TPATTERN, TOFWHM, opt_metric, KEEPMEAN )
%
% RUN_OPPNI_LOCAL: script for running pipelines directly in matlab, for
% instance where SGE system is not available.
%
% Syntax:
%
% run_oppni_l... |
github | strotherlab/oppni-master | lda_optimization_group.m | .m | oppni-master/scripts_matlab/lda_optimization_group.m | 11,286 | utf_8 | 7ef19a611afdb9bfe8fcde2694b26a23 | function result_set = lda_optimization_group ( data_class1, data_class2, drf, Resampling_Index )
%
% This is LDA for multiple data splits, when class structure is (possibly) different between splits
% * accounts for differences in model priors / design-matrix structure
%
% result_set = lda_optimization_group( data_clas... |
github | strotherlab/oppni-master | Pipeline_PART1_afni_steps.m | .m | oppni-master/scripts_matlab/Pipeline_PART1_afni_steps.m | 28,352 | utf_8 | 5f55939acd5270dc98edce584e3084cb | function Pipeline_PART1_afni_steps(InputStruct,input_pipeset_half,dospnormfirst,DEOBLIQUE,TPATTERN,TOFWHM)
% ------------------------------------------------------------------------%
% Authors: Nathan Churchill, University of Toronto
% email: nathan.churchill@rotman.baycrest.on.ca
% Babak Afshin-Pour... |
github | strotherlab/oppni-master | group_mask_tissue_maps.m | .m | oppni-master/scripts_matlab/group_mask_tissue_maps.m | 10,507 | utf_8 | ef00a9d7158fcd4486bc8fa4b9f88f77 | function group_mask_tissue_maps( inputfile, newmaskname )
%
%==========================================================================
% GROUP_MASK_TISSUE_MAPS: second part of spatial normalization process,
% generating a consensus brain mask and statistics on quality of transforms
%===================================... |
github | strotherlab/oppni-master | spatial_normalization_noise_roi.m | .m | oppni-master/scripts_matlab/spatial_normalization_noise_roi.m | 6,772 | utf_8 | 6ffc51067fe2989842cb8b8783d9ec5c | function spatial_normalization_noise_roi(InputStruct)
% ------------------------------------------------------------------------%
% Authors: Nathan Churchill, University of Toronto
% email: nathan.churchill@rotman.baycrest.on.ca
% Babak Afshin-Pour, Rotman reseach institute
% email: bafshinp... |
github | strotherlab/oppni-master | get_rSPM.m | .m | oppni-master/scripts_matlab/get_rSPM.m | 2,623 | utf_8 | 30938d386f7d70a6f41be2b99cf00cba | function [ rep, rSPM ] = get_rSPM( vect1, vect2, keepMean )
%
% [ rep, rSPM ] = get_rSPM( vect1, vect2, keepMean )
%
% * This script takes in 2 vectors, returns reproducibility (rep)
% and reproducible SPM (rSPM)
%
% * keepMean: reinsert the mean offset present in vectors
%
%
% ---------------------------------... |
github | strotherlab/oppni-master | ercva_optimization.m | .m | oppni-master/scripts_matlab/ercva_optimization.m | 16,762 | utf_8 | 6011d2dcaf7690f169f98e91bb12e58f | function [out] = ercva_optimization( DATA, List, opt_crit )
%
% ERCVA_OPTIMIZATION: hybrid event-related Canonical Variates Analysis (CVA).
% This is a multivariate analysis model that takes in a set of time-windowed
% data blocks, then performs CVA analysis to identify event-related components.
%
% Syntax:
% ... |
github | strotherlab/oppni-master | Pipeline_PART2.m | .m | oppni-master/scripts_matlab/Pipeline_PART2.m | 40,765 | utf_8 | 628dc5b00870cda01ce9cd2ba4e5210f | function Pipeline_PART2( InputStruct, optimize_metric, mot_gs_control, process_out, keepmean, whichpipes)
%
%==========================================================================
% PIPELINE_PART2 : this step identifies optimal pipelines, and produces
% optimization results, plus figures. Note that script can only ... |
github | strotherlab/oppni-master | interpret_contrast_list_str.m | .m | oppni-master/scripts_matlab/interpret_contrast_list_str.m | 27,428 | utf_8 | 1a8807821e7857d12ba861c135161ca1 | function InputStruct = interpret_contrast_list_str(InputStruct,modelparam,analysis_model,contrast_list_str)
% split_info.cond
% ------------------------------------------------------------------------%
% Authors: Nathan Churchill, University of Toronto
% email: nathan.churchill@rotman.baycrest.on.ca
% ... |
github | strotherlab/oppni-master | statsrexact_octave.m | .m | oppni-master/scripts_matlab/statsrexact_octave.m | 2,255 | utf_8 | 455fa11484c59c2c1deb8835d1de0980 | %adloftsfunction from matlab
function [pval,P] = statsrexact_octave(v,w)
% Modified version of statsrexact from the MATLAB stats toolbox, so that it
% works with the default settings in octave. The defaults must be used for
% now.
% Edits By Andrew Lofts June 26 2018
%
%
% Original Help String............................. |
github | strotherlab/oppni-master | module_erCVA.m | .m | oppni-master/scripts_matlab/module_erCVA.m | 6,919 | utf_8 | 02644eff8597cc80a7a5110a513bec8f | function output = module_erCVA( datamat, split_info )
%
% =========================================================================
% MODULE_ERCVA: module that performs hybrid Canonical Variates Analysis
% with averaging for event-related data
% =========================================================================
... |
github | strotherlab/oppni-master | get_legendre.m | .m | oppni-master/scripts_matlab/get_legendre.m | 1,644 | utf_8 | 936b724fdbe0617b4b60db747671b95a | function DL = get_legendre( ord, N )
%
% ------------------------------------------------------------------------%
% Authors: Nathan Churchill, University of Toronto
% email: nathan.churchill@rotman.baycrest.on.ca
% Babak Afshin-Pour, Rotman reseach institute
% email: bafshinpour@resear... |
github | strotherlab/oppni-master | module_hurst.m | .m | oppni-master/scripts_matlab/module_hurst.m | 8,195 | utf_8 | a7f5789451787ebdc0ed3c42c87fb757 | function output = module_hurst( datamat, split_info )
%
% =========================================================================
% MODULE_HURST: computes hurst exponent on fmri timeseries
% =========================================================================
%
% Syntax:
% output = module_hurst( data... |
github | strotherlab/oppni-master | lda_optimization.m | .m | oppni-master/scripts_matlab/lda_optimization.m | 10,709 | utf_8 | 303ff2f93a70648e6e8c4165e4fe0905 | function result_set = lda_optimization ( data_sp1, data_sp2, design_sp1, design_sp2, drf )
% This is LDA for 2 data splits, when class structure is different between splits
% * accounts for differences in model priors / design-matrix structure
%
% result_set = lda_optimization2( data_sp1, data_sp2, design_sp1, design_... |
github | strotherlab/oppni-master | Pipeline_PART1.m | .m | oppni-master/scripts_matlab/Pipeline_PART1.m | 53,532 | utf_8 | e48311e2138db5f3fa794af1a277ccc3 | function Pipeline_PART1(InputStruct, input_pipeset, analysis_model, modelparam, niiout, contrast_list_str, dospnormfirst, DEOBLIQUE, TPATTERN, TOFWHM, KEEPMEAN)
%
%
%==========================================================================
% PIPELINE_PART1 : main script used for running pipelines and obtaining
% perfo... |
github | strotherlab/oppni-master | min_displace_brick.m | .m | oppni-master/scripts_matlab/min_displace_brick.m | 3,238 | utf_8 | 1677870b50290cde6a6175fe782070d5 | function imed_out = min_displace_brick( volname, maskname, outname )
%
% MIN_DISPLACE_BRICK: This script reads in fMRI 4D dataset and brain mask file.
% It uses these data to find the timepoint with smallest overall displacement,
% measured in Principal Component space. This is used to choose a "reference"
% volume fo... |
github | strotherlab/oppni-master | LegendrePoly.m | .m | oppni-master/scripts_matlab/LegendrePoly.m | 1,358 | utf_8 | 2b0db560b7443906f63b8e1e8f27aa9d |
% LegendrePoly.m by David Terr, Raytheon, 5-10-04
% Given nonnegative integer n, compute the
% Legendre polynomial P_n. Return the result as a vector whose mth
% element is the coefficient of x^(n+1-m).
% polyval(LegendrePoly(n),x) evaluates P_n(x).
% ----------------------------------------------------------... |
github | strotherlab/oppni-master | rSVD_splithalf.m | .m | oppni-master/scripts_matlab/rSVD_splithalf.m | 11,438 | utf_8 | 6f1e61f20a750a867ceb9d0f470f2b93 | function [ output ] = rSVD_splithalf( X, Npc, Niters, threshold )
%
% RSVD_SPLITHALF: this script takes a matrix of image vectors and
% performs Singular Value Decomposition (SVD) in a split-half resampling
% framework. This allows you to identify spatially reproducible components,
% and obtain Z-scored component maps... |
github | strotherlab/oppni-master | module_erCVA_group.m | .m | oppni-master/scripts_matlab/module_erCVA_group.m | 6,819 | utf_8 | d7e6937a00de50fad29a1af59728c54e | function output = module_erCVA_group( datamat, split_info )
%
% =========================================================================
% MODULE_ERCVA_GROUP: module that performs group-level hybrid Canonical
% Variates Analysis with averaging for event-related data
% =================================================... |
github | strotherlab/oppni-master | component_auto_filter.m | .m | oppni-master/scripts_matlab/component_auto_filter.m | 4,172 | utf_8 | b0c61f6979e5a2f53685cef178b27369 | function component_auto_filter( volname, outvolname, maskname, COMP_imag_path, COMP_temp_path )
%
% COMPONENT_AUTO_FILTER: script for component based filtering of motion
% "spikes". Looks for temporal outliers and outliers in spatial patterns
%
% Syntax:
% component_auto_filter( volname, outvolname, maskname... |
github | strotherlab/oppni-master | PHYCAA_plus_step2.m | .m | oppni-master/scripts_matlab/PHYCAA_plus_step2.m | 19,516 | utf_8 | 616b041c1c7d50fd715161bd673756a4 | function output = PHYCAA_plus_step2( dataMat, dataInfo )
%
%==========================================================================
% PHYCAA_PLUS_STEP2: regresses physiological timecourses from fmri data,
% after applying PHYCAA_PLUS_STEP1. This algorithm uses multivariate
% Canonical Autocorrelations Ana... |
github | strotherlab/oppni-master | module_gPCA.m | .m | oppni-master/scripts_matlab/module_gPCA.m | 6,877 | utf_8 | 591115940935041700f920d04e029d13 | function output = module_gPCA( datamat, split_info )
%
% =========================================================================
% MODULE_GSVD: measures generalization SVD on data
% =========================================================================
%
% Syntax:
% output = module_gPCA( datamat, split... |
github | strotherlab/oppni-master | tiedrank.m | .m | oppni-master/scripts_matlab/tiedrank.m | 3,686 | utf_8 | 1f04f3f5ef50234f126b4af5db5d9bd1 | function [r, tieadj] = tiedrank(x, tieflag, bidirectional, epsx)
%TIEDRANK Compute the ranks of a sample, adjusting for ties.
% [R, TIEADJ] = TIEDRANK(X) computes the ranks of the values in the
% vector X. If any X values are tied, TIEDRANK computes their average
% rank. The return value TIEADJ is an adjustment... |
github | strotherlab/oppni-master | GLM_model_fmri.m | .m | oppni-master/scripts_matlab/GLM_model_fmri.m | 4,010 | utf_8 | ef3bc88c31c646ac350aee4ee5895d46 | function [ output ] = GLM_model_fmri( dataVol, detrend_order, Xnoise, Xsignl, econflag, keepmean )
% ------------------------------------------------------------------------%
% Authors: Nathan Churchill, University of Toronto
% email: nathan.churchill@rotman.baycrest.on.ca
% Babak Afshin-Pour,... |
github | strotherlab/oppni-master | diagnostic_fmri_pca.m | .m | oppni-master/scripts_matlab/diagnostic_fmri_pca.m | 20,245 | utf_8 | 1548c2339401430d1e8144af5028320d | function diagnostic_fmri_pca( volname, maskname, mpename, outprefix )
%
% =========================================================================
% DIAGNOSTIC_FMRI_PCA: This script reads in fMRI 4D dataset, brain mask and
% Motion Parameter Estimates (MPEs), and tests for potential outliers &
% artifact. This provi... |
github | strotherlab/oppni-master | filtfilt_octave.m | .m | oppni-master/scripts_matlab/filtfilt_octave.m | 4,962 | iso_8859_1 | 1f9faab486bc7e1624a9818c1d207e67 | ## Copyright (C) 1999 Paul Kienzle <pkienzle@users.sf.net>
## Copyright (C) 2007 Francesco Potortì <pot@gnu.org>
## Copyright (C) 2008 Luca Citi <lciti@essex.ac.uk>
##
## Modified version for perfomance profiling and testing in Octave
## by Mark Prati <mprati@research.baycrest.org>
##
## This program is free software... |
github | strotherlab/oppni-master | load_nii_ext.m | .m | oppni-master/scripts_matlab/NIFTI_tools/load_nii_ext.m | 5,573 | utf_8 | 57c0b9d46938ce0e1cb64e9b97144ae7 | % Load NIFTI header extension after its header is loaded using load_nii_hdr.
%
% Usage: ext = load_nii_ext(filename)
%
% filename - NIFTI file name.
%
% Returned values:
%
% ext - Structure of NIFTI header extension, which includes num_ext,
% and all the extended header sections in the header extens... |
github | strotherlab/oppni-master | rri_orient.m | .m | oppni-master/scripts_matlab/NIFTI_tools/rri_orient.m | 2,357 | utf_8 | e1b7cfcaf2517b7887ac6e02d9ab504d | % Convert image of different orientations to standard Analyze orientation
%
% Usage: nii = rri_orient(nii);
% Jimmy Shen (jimmy@rotman-baycrest.on.ca), 26-APR-04
%___________________________________________________________________
function [nii, orient, pattern] = rri_orient(nii, varargin)
if nargin >... |
github | strotherlab/oppni-master | save_untouch0_nii_hdr.m | .m | oppni-master/scripts_matlab/NIFTI_tools/save_untouch0_nii_hdr.m | 8,813 | utf_8 | a0a201073cb18f09b62842e94094c451 | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function save_nii_hdr(hdr, fid)
if ~isequal(hdr.hk.sizeof_hdr,348),
error('hdr.hk.sizeof_hdr must be 348.');
end
write_header(hdr, fid);
return; % save_nii_hdr
%------------------------------------------------... |
github | strotherlab/oppni-master | rri_zoom_menu.m | .m | oppni-master/scripts_matlab/NIFTI_tools/rri_zoom_menu.m | 770 | utf_8 | f0bae2b3d88fd719c47fd467e867e19f | % Imbed a zoom menu to any figure.
%
% Usage: rri_zoom_menu(fig);
%
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
%
%--------------------------------------------------------------------
function menu_hdl = rri_zoom_menu(fig)
if isnumeric(fig)
menu_hdl = uimenu('Parent',fig, ...
'Label','... |
github | strotherlab/oppni-master | rri_select_file.m | .m | oppni-master/scripts_matlab/NIFTI_tools/rri_select_file.m | 17,238 | utf_8 | 0b47f860600247a7801c5fc0e10e803d | function [selected_file, selected_path] = rri_select_file(varargin)
%
% USAGE: [selected_file, selected_path] = ...
% rri_select_file(dir_name, fig_title)
%
% Allow user to select a file from a list of Matlab competible
% file format
%
% Example:
%
% [selected_file, selected_path] = ...
% ... |
github | strotherlab/oppni-master | clip_nii.m | .m | oppni-master/scripts_matlab/NIFTI_tools/clip_nii.m | 3,306 | utf_8 | a70bdbed5a0813312d4c83f94b99a710 | % CLIP_NII: Clip the NIfTI volume from any of the 6 sides
%
% Usage: nii = clip_nii(nii, [option])
%
% Inputs:
%
% nii - NIfTI volume.
%
% option - struct instructing how many voxel to be cut from which side.
%
% option.cut_from_L = ( number of voxel )
% option.cut_from_R = ( number of voxel )
% option.cut_from_P ... |
github | strotherlab/oppni-master | affine.m | .m | oppni-master/scripts_matlab/NIFTI_tools/affine.m | 16,670 | utf_8 | cd7ca375f64db00eb2df0da478d4e44d | % Using 2D or 3D affine matrix to rotate, translate, scale, reflect and
% shear a 2D image or 3D volume. 2D image is represented by a 2D matrix,
% 3D volume is represented by a 3D matrix, and data type can be real
% integer or floating-point.
%
% You may notice that MATLAB has a function called 'imtransform.... |
github | strotherlab/oppni-master | load_untouch_nii_img.m | .m | oppni-master/scripts_matlab/NIFTI_tools/load_untouch_nii_img.m | 15,259 | utf_8 | 1b123f96ede801da50ce3d970f4c58c2 | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function [img,hdr] = load_untouch_nii_img(hdr,filetype,fileprefix,machine,img_idx,dim5_idx,dim6_idx,dim7_idx,old_RGB,slice_idx)
if ~exist('hdr','var') || ~exist('filetype','var') || ~exist('fileprefix','var') || ~exist('machine','var')
... |
github | strotherlab/oppni-master | load_untouch_nii.m | .m | oppni-master/scripts_matlab/NIFTI_tools/load_untouch_nii.m | 6,914 | utf_8 | cd15a820a13f2e6cb6d143dae94c8ca3 | % Load NIFTI or ANALYZE dataset, but not applying any appropriate affine
% geometric transform or voxel intensity scaling.
%
% Although according to NIFTI website, all those header information are
% supposed to be applied to the loaded NIFTI image, there are some
% situations that people do want to leave the ... |
github | strotherlab/oppni-master | in_octave.m | .m | oppni-master/scripts_matlab/NIFTI_tools/in_octave.m | 455 | utf_8 | 137bdef445d6fd8c834eba4e198dc36a | %
% Simple function to check if we are are currently executing in Octave or Matlab
%
% USAGES: inOctave = in_octave();
% [inOctave,version_str] = in_octave();
%
%
% Mark Prati (LMP)- mprati@research.baycrest.org
%
%
function [inOctave,version_str] = in_octave()
try
ver_num = OCTAVE_VERSIO... |
github | strotherlab/oppni-master | collapse_nii_scan.m | .m | oppni-master/scripts_matlab/NIFTI_tools/collapse_nii_scan.m | 7,069 | utf_8 | ca363d849e7df8aa2eb6965337340f6c | % Collapse multiple single-scan NIFTI files into a multiple-scan NIFTI file
%
% Usage: collapse_nii_scan(scan_file_pattern, [collapsed_fileprefix], [scan_file_folder])
%
% Here, scan_file_pattern should look like: 'myscan_0*.img'
% If collapsed_fileprefix is omit, 'multi_scan' will be used
% If scan_file_fol... |
github | strotherlab/oppni-master | rri_orient_ui.m | .m | oppni-master/scripts_matlab/NIFTI_tools/rri_orient_ui.m | 5,635 | utf_8 | 3361ce417798ffe2c6b53cf194b2a146 | % Return orientation of the current image:
% orient is orientation 1x3 matrix, in that:
% Three elements represent: [x y z]
% Element value: 1 - Left to Right; 2 - Posterior to Anterior;
% 3 - Inferior to Superior; 4 - Right to Left;
% 5 - Anterior to Posterior; 6 - Superior to Inferior;
% e.g.:
% Standard... |
github | strotherlab/oppni-master | load_untouch0_nii_hdr.m | .m | oppni-master/scripts_matlab/NIFTI_tools/load_untouch0_nii_hdr.m | 8,293 | utf_8 | d823050e9ba931a2ba7f9d9a3893d2d1 | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function hdr = load_nii_hdr(fileprefix, machine)
fn = sprintf('%s.hdr',fileprefix);
fid = fopen(fn,'r',machine);
if fid < 0,
msg = sprintf('Cannot open file %s.',fn);
error(msg);
else
fseek(fid,0,'bof')... |
github | strotherlab/oppni-master | load_nii.m | .m | oppni-master/scripts_matlab/NIFTI_tools/load_nii.m | 7,041 | utf_8 | d4192fbf13abbb7c57c680a9e21e071e | % Load NIFTI or ANALYZE dataset. Support both *.nii and *.hdr/*.img
% file extension. If file extension is not provided, *.hdr/*.img will
% be used as default.
%
% A subset of NIFTI transform is included. For non-orthogonal rotation,
% shearing etc., please use 'reslice_nii.m' to reslice the NIFTI file.
% I... |
github | strotherlab/oppni-master | unxform_nii.m | .m | oppni-master/scripts_matlab/NIFTI_tools/unxform_nii.m | 1,221 | utf_8 | ff8be64760837046b931857d59ca304e | % Undo the flipping and rotations performed by xform_nii; spit back only
% the raw img data block. Initial cut will only deal with 3D volumes
% strongly assume we have called xform_nii to write down the steps used
% in xform_nii.
%
% Usage: a = load_nii('original_name');
% manipulate a.img to make... |
github | strotherlab/oppni-master | load_untouch_nii_hdr.m | .m | oppni-master/scripts_matlab/NIFTI_tools/load_untouch_nii_hdr.m | 8,739 | utf_8 | eb068c88e2b7bb518ea557d0734bc65d | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function hdr = load_nii_hdr(fileprefix, machine, filetype)
if filetype == 2
fn = sprintf('%s.nii',fileprefix);
if ~exist(fn)
msg = sprintf('Cannot find file "%s.nii".', fileprefix);
error(msg);
end
... |
github | strotherlab/oppni-master | save_nii_ext.m | .m | oppni-master/scripts_matlab/NIFTI_tools/save_nii_ext.m | 1,018 | utf_8 | 567c8081f2e8d466f3ad8d9751e5efc8 | % Save NIFTI header extension.
%
% Usage: save_nii_ext(ext, fid)
%
% ext - struct with NIFTI header extension fields.
%
% NIFTI data format can be found on: http://nifti.nimh.nih.gov
%
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
%
function save_nii_ext(ext, fid)
if ~exist('ext','var') || ~exist('f... |
github | strotherlab/oppni-master | view_nii_menu.m | .m | oppni-master/scripts_matlab/NIFTI_tools/view_nii_menu.m | 14,897 | utf_8 | b22c4f3f8f4a52e87c1d82c75f83111c | % Imbed Zoom, Interp, and Info menu to view_nii window.
%
% Usage: view_nii_menu(fig);
%
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
%
%--------------------------------------------------------------------
function menu_hdl = view_nii_menu(fig, varargin)
if isnumeric(fig)
menu_hdl = init(fig);
... |
github | strotherlab/oppni-master | save_untouch_header_only.m | .m | oppni-master/scripts_matlab/NIFTI_tools/save_untouch_header_only.m | 2,161 | utf_8 | e98c071d87808424930e9d4d26bd0526 | % This function is only used to save Analyze or NIfTI header that is
% ended with .hdr and loaded by load_untouch_header_only.m. If you
% have NIfTI file that is ended with .nii and you want to change its
% header only, you can use load_untouch_nii / save_untouch_nii pair.
%
% Usage: save_untouch_header_only(hd... |
github | strotherlab/oppni-master | pad_nii.m | .m | oppni-master/scripts_matlab/NIFTI_tools/pad_nii.m | 3,713 | utf_8 | d7447811855b9b7ddc439719df8e75ce | % PAD_NII: Pad the NIfTI volume from any of the 6 sides
%
% Usage: nii = pad_nii(nii, [option])
%
% Inputs:
%
% nii - NIfTI volume.
%
% option - struct instructing how many voxel to be padded from which side.
%
% option.pad_from_L = ( number of voxel )
% option.pad_from_R = ( number of voxel )
% option.pad_from_P ... |
github | strotherlab/oppni-master | load_nii_hdr.m | .m | oppni-master/scripts_matlab/NIFTI_tools/load_nii_hdr.m | 10,312 | utf_8 | f1e432d720d5ee63734adc209fdf1ac6 | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function [hdr, filetype, fileprefix, machine] = load_nii_hdr(fileprefix)
if ~exist('fileprefix','var'),
error('Usage: [hdr, filetype, fileprefix, machine] = load_nii_hdr(filename)');
end
machine = 'ieee-le';
new_ext = 0;... |
github | strotherlab/oppni-master | save_untouch_slice.m | .m | oppni-master/scripts_matlab/NIFTI_tools/save_untouch_slice.m | 20,332 | utf_8 | 5692a55fba7083eef4ab9c1395f3b337 | % Save back to the original image with a portion of slices that was
% loaded by "load_untouch_nii". You can process those slices matrix
% in any way, as long as their dimension is not altered.
%
% Usage: save_untouch_slice(slice, filename, ...
% slice_idx, [img_idx], [dim5_idx], [dim6_idx], [dim7_idx])
%
% ... |
github | strotherlab/oppni-master | load_nii_img.m | .m | oppni-master/scripts_matlab/NIFTI_tools/load_nii_img.m | 12,756 | utf_8 | dce1dc7cb810c91ac14cfa47b5eab230 | % internal function
% - Jimmy Shen (jimmy@rotman-baycrest.on.ca)
function [img,hdr] = load_nii_img(hdr,filetype,fileprefix,machine,img_idx,dim5_idx,dim6_idx,dim7_idx,old_RGB)
if ~exist('hdr','var') || ~exist('filetype','var') || ~exist('fileprefix','var') || ~exist('machine','var')
error('Usage: [i... |
github | strotherlab/oppni-master | bresenham_line3d.m | .m | oppni-master/scripts_matlab/NIFTI_tools/bresenham_line3d.m | 4,684 | utf_8 | 09e9104a6de29b6aa62b99510a2cc717 | % Generate X Y Z coordinates of a 3D Bresenham's line between
% two given points.
%
% A very useful application of this algorithm can be found in the
% implementation of Fischer's Bresenham interpolation method in my
% another program that can rotate three dimensional image volume
% with an affine matrix:
... |
github | strotherlab/oppni-master | make_nii.m | .m | oppni-master/scripts_matlab/NIFTI_tools/make_nii.m | 7,105 | utf_8 | 6b1565392965b164217621e71d213ddd | % Make NIfTI structure specified by an N-D matrix. Usually, N is 3 for
% 3D matrix [x y z], or 4 for 4D matrix with time series [x y z t].
% Optional parameters can also be included, such as: voxel_size,
% origin, datatype, and description.
%
% Once the NIfTI structure is made, it can be saved into NIfT... |
github | strotherlab/oppni-master | verify_nii_ext.m | .m | oppni-master/scripts_matlab/NIFTI_tools/verify_nii_ext.m | 1,722 | utf_8 | bef3b8ee6f2bc0229614f6a18d6c7062 | % Verify NIFTI header extension to make sure that each extension section
% must be an integer multiple of 16 byte long that includes the first 8
% bytes of esize and ecode. If the length of extension section is not the
% above mentioned case, edata should be padded with all 0.
%
% Usage: [ext, esize_total] = ... |
github | strotherlab/oppni-master | get_nii_frame.m | .m | oppni-master/scripts_matlab/NIFTI_tools/get_nii_frame.m | 4,528 | utf_8 | f70caded35fa0f71170ba9d5008354b4 | % Return time frame of a NIFTI dataset. Support both *.nii and
% *.hdr/*.img file extension. If file extension is not provided,
% *.hdr/*.img will be used as default.
%
% It is a lightweighted "load_nii_hdr", and is equivalent to
% hdr.dime.dim(5)
%
% Usage: [ total_scan ] = get_nii_frame(filename)
%
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.