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 | zhouyuanzxcv/Hyperspectral-master | gmm_init.m | .m | Hyperspectral-master/GMM/gmm_init.m | 1,201 | utf_8 | 04c4b4cd0d7b874b1fde25845dace7e8 | function [mu_jk,sigma_jk,w_jk,K,A] = gmm_init(I1, M, options)
%INIT_GMM Summary of this function goes here
% Detailed explanation goes here
sigma0 = 0.1;
if isstruct(options)
arg_set = fieldnames(options);
for i = 1:length(arg_set)
eval([arg_set{i},'=options.',arg_set{i},';']);
end
end
[Y,~,rows... |
github | zhouyuanzxcv/Hyperspectral-master | gmm_init_old.m | .m | Hyperspectral-master/GMM/gmm_init_old.m | 6,401 | utf_8 | c4935ad646046516cff09542e745215f | function [mu_jk,sigma_jk,w_jk,K,A] = gmm_init(I1, M, options)
%INIT_GMM Summary of this function goes here
% Detailed explanation goes here
sigma0 = 1e-2;
if isstruct(options)
arg_set = fieldnames(options);
for i = 1:length(arg_set)
eval([arg_set{i},'=options.',arg_set{i},';']);
end
end
[Y,~,row... |
github | zhouyuanzxcv/Hyperspectral-master | gmm_hu.m | .m | Hyperspectral-master/GMM/gmm_hu.m | 20,050 | utf_8 | d9d845f4fe0f7e3108f4ab0bbb1d146a | function [A,R,w_jk,mu_jk,sigma_jk,extra] = gmm_hu(I,M,options)
%GMM_HU Summary of this function goes here
% Detailed explanation goes here
beta1 = 5;
beta2 = 5;
rho1 = 0;
rho2 = 0;
eta = 0.05;
A_gt = [];
fix_A = 0;
fix_w_k = 0;
fix_sigma_jk = 0;
fix_mu_jk = 0;
convergence_thresh = 0.002;
shrink_size = 2;
max_num_... |
github | zhouyuanzxcv/Hyperspectral-master | estimate_num_comp_old.m | .m | Hyperspectral-master/GMM/estimate_num_comp_old.m | 2,570 | utf_8 | eebf229bbbb1c63d34efafd0a7335613 | function [K,w_jk,mu_jk,sigma_jk] = estimate_num_comp1(Y, A, w_jk, mu_jk, sigma_jk)
%ESTIMATE_NUM_COMP1 Summary of this function goes here
% Detailed explanation goes here
max_num_comp = 5;
max_num_configs = 300;
[N,M] = size(A);
K = ones(1,M);
lls = zeros(M, max_num_comp);
for j = 1:M
X = Y(A(:,j)==1, :);
l... |
github | zhouyuanzxcv/Hyperspectral-master | gmm_hu_old.m | .m | Hyperspectral-master/GMM/gmm_hu_old.m | 20,564 | utf_8 | ae86851667595afc504988fb95f08373 | function [ output_args ] = gmm_hu(I,M,options)
%GMM_HU Summary of this function goes here
% Detailed explanation goes here
beta1 = 1e4;
beta2 = 0; % 2e4
eta = 0.05;
rho1 = 1e4;
if isstruct(options)
arg_set = fieldnames(options);
for i = 1:length(arg_set)
eval([arg_set{i},'=options.',arg_set{i},';'])... |
github | zhouyuanzxcv/Hyperspectral-master | test_gmm.m | .m | Hyperspectral-master/GMM/test_gmm.m | 7,457 | utf_8 | 18f37fcc3bf1e8c1b5c85d3a7d3dffad | function [ output_args ] = test_gmm(dataset)
%TEST_GMM Summary of this function goes here
% Detailed explanation goes here
addpath('../NCM');
addpath('../common');
close all
% select dataset - '21' for Pavia University, '62' for the gulfport dataset
% '00' for generating unsupervised synthetic dataset
% '001' or '0... |
github | zhouyuanzxcv/Hyperspectral-master | restore_from_projection.m | .m | Hyperspectral-master/GMM/restore_from_projection.m | 1,875 | utf_8 | daaa86c952c65bfdde77ee2436f44cbe | function [mus,sigmas,R] = restore_from_projection(mus_p,sigmas_p,R_p,c,E)
% restore from projection.
% input:
% mus_p - 1 by M cell array (each cell is a K_j by B matrix)
% sigmas_p - 1 by M cell array (each cell is a B by B by K_j matrix)
% R_p - M by d projected data or M by d by N projected data
% c - 1 by B... |
github | zhouyuanzxcv/Hyperspectral-master | calc_log_gmm.m | .m | Hyperspectral-master/common/calc_log_gmm.m | 1,367 | utf_8 | 0748a69e02820952d7de84fdecdcfb6f | function value = calc_log_gmm(X, w, Mu, Sigma, options)
%CALC_LOG_GMM Calculate the logarithm of the GMM.
% Input:
% X: N by B data
% w: 1 by K vector, weights of the Gaussians
% Mu: K by B (single mean) or N by B by K (multiple means)
% Sigma: B by B by K (single covariance matrix) by B by B by N by K
%
% Outp... |
github | zhouyuanzxcv/Hyperspectral-master | permute_abundances.m | .m | Hyperspectral-master/common/permute_abundances.m | 1,371 | utf_8 | 20b66bbd1f41900790fa6db6b5fb1317 | function P = permute_abundances(A1,A2)
%PERMUTE_ABUNDANCES Permute abundance maps in A2 such that they match the
%abundance maps in A1. Warning: it assumes that most elements in the
%abundance maps are 1s. To permute arbitrary values, use
%permute_endmembers.
% Input:
% A1: N by M_1 matrix of the abundance maps to be... |
github | zhouyuanzxcv/Hyperspectral-master | kmeans_stable.m | .m | Hyperspectral-master/common/kmeans_stable.m | 1,464 | utf_8 | 5208ac95c5cfaf450353603fc3622449 | function C = kmeans_stable(Y, M, num_kmeans)
% Find the most frequents centers given by kmeans.
% Input:
% Y - N by D data
% M - number of clusters
% num_kmeans - number of runs
% Output:
% C - Centers of the most frequent kmeans
[N,B] = size(Y);
%% reduce the dimension
reduced_dim = 10;
us... |
github | zhouyuanzxcv/Hyperspectral-master | logmvn.m | .m | Hyperspectral-master/common/logmvn.m | 2,885 | utf_8 | 0f138a396b4ed1f03ac880d6f4caf196 | function y = logmvn(X, Mu, Sigma, options)
%LOGMVN Evaluate the logarithms of normal density functions.
%The function evaluates the logarithm of Gaussian density function given
%data at X(n,:) with center at Mu(n,:) and covariance matrix Sigma(:,:,n).
%The code can handle different means and covariance matrices for ea... |
github | zhouyuanzxcv/Hyperspectral-master | mdiff.m | .m | Hyperspectral-master/common/mdiff.m | 636 | utf_8 | 38b91af1bd82cda166a58f81426a1c4b | function [abs_err, rel_err] = mdiff(A, B, verbose)
%MDIFF Summary of this function goes here
% Detailed explanation goes here
if nargin < 3
verbose = 1;
end
if iscell(A)
e1s = zeros(1,length(A));
e2s = e1s;
for i = 1:length(A)
[e1,e2] = mdiff_i(A{i}, B{i});
e1s(i) = e1;
e2s(i)... |
github | zhouyuanzxcv/Hyperspectral-master | analyze_hsi.m | .m | Hyperspectral-master/common/analyze_hsi.m | 38,120 | utf_8 | f2a2845328a0e989f36a39557eda7006 | function varargout = analyze_hsi(varargin)
% ANALYZE_HSI MATLAB code for analyze_hsi.fig
% ANALYZE_HSI, by itself, creates a new ANALYZE_HSI or raises the existing
% singleton*.
%
% H = ANALYZE_HSI returns the handle to a new ANALYZE_HSI or the handle to
% the existing singleton*.
%
% ANALYZE_H... |
github | zhouyuanzxcv/Hyperspectral-master | plot_gaussian_ellipsoid.m | .m | Hyperspectral-master/common/plot_gaussian_ellipsoid.m | 3,823 | utf_8 | 3bf64e71651e3c0596c7b78b557ee45e | function h = plot_gaussian_ellipsoid(m, C, sdwidth, npts, axh)
% PLOT_GAUSSIAN_ELLIPSOIDS plots 2-d and 3-d Gaussian distributions
%
% H = PLOT_GAUSSIAN_ELLIPSOIDS(M, C) plots the distribution specified by
% mean M and covariance C. The distribution is plotted as an ellipse (in
% 2-d) or an ellipsoid (in 3-d). By ... |
github | zhouyuanzxcv/Hyperspectral-master | hist_wavelength_reflectance.m | .m | Hyperspectral-master/common/hist_wavelength_reflectance.m | 4,418 | utf_8 | b3c0568abbc8e70d1730441de6a6dfa7 | function [ output_args ] = hist_wavelength_reflectance(Y,A_gt,names,wl,options)
%HIST_WAVELENGTH_REFLECTANCE Summary of this function goes here
% Detailed explanation goes here
if nargin < 5
options = [];
end
thresh = parse_param(options, 'thresh', 0.99);
reflectance_bin_num = parse_param(options, 'reflectance_... |
github | zhouyuanzxcv/Hyperspectral-master | restore_endm_by_bbl.m | .m | Hyperspectral-master/common/restore_endm_by_bbl.m | 361 | utf_8 | ef7633996b6af751ff1d2436ba450e35 | function R = restore_endm_by_bbl(R, bbl)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
if iscell(R)
for i = 1:length(R)
R{i} = restore_from_bbl(R{i}, bbl);
end
else
R = restore_from_bbl(R, bbl);
end
end
function R1 = restore_from_bbl(R, bbl)
[M,B1] = size(R);
R1 =... |
github | zhouyuanzxcv/Hyperspectral-master | noise_est_roger.m | .m | Hyperspectral-master/common/noise_est_roger.m | 447 | utf_8 | 880e61636c046f0b5f0a168eb8996fea | function sigmas = noise_est_roger(I)
%NOISE_EST_ROGER Estimate the standard deviation of noise for each band.
if ndims(I) == 3
[rows,cols,B] = size(I);
Y = reshape(I, [rows*cols, B]);
else
Y = I;
end
[N,B] = size(Y);
Y1 = Y - repmat(mean(Y,1),N,1);
K = (1/N)*(Y1'*Y1);
[D,E] = decompose(inv(K));
sigmas = di... |
github | zhouyuanzxcv/Hyperspectral-master | create_adjacency_graph.m | .m | Hyperspectral-master/common/create_adjacency_graph.m | 1,699 | utf_8 | ae735e47f0376ce6f351dbefc91b3c3a | function [A,J2,A2] = create_adjacency_graph(X,method,param,force_sym)
%CREATE_ADJACENCY_GRAPH Summary of this function goes here
% Detailed explanation goes here
if strcmp(method,'epsball')
fh = @(Z) find_indices_by_epsilon(Z,param);
[J2,A2] = create_adjacency_graph_internal(X,fh);
elseif strcmp(method,'nn')
... |
github | zhouyuanzxcv/Hyperspectral-master | reduce_dim.m | .m | Hyperspectral-master/common/reduce_dim.m | 464 | utf_8 | a37961137a9e8b33572ef96ddb3a3b24 | function [Y1,U,err] = reduce_dim(Y)
%REDUCE_DIM Summary of this function goes here
% Detailed explanation goes here
errors = [];
for ndims = 1:20
[Y1,U,err] = pca_dr(Y,ndims);
errors = [errors;err];
if ndims > 3 && errors(end-1)-errors(end) < 1e-3*(errors(1)-errors(2))
break;
end
end
function... |
github | zhouyuanzxcv/Hyperspectral-master | endmember_scatter_plot.m | .m | Hyperspectral-master/common/endmember_scatter_plot.m | 1,082 | utf_8 | af8d4fda25e167819d0739bc003dd291 | function [mapping, hs, axes_h, fig_h] = endmember_scatter_plot(Y,R,names,options)
%ENDMEMBER_SCATTER_PLOT Summary of this function goes here
% Detailed explanation goes here
[M,B,p] = size(R);
if nargin < 3
names = cell(1,M);
for j = 1:M
names{j} = ['endmember',num2str(j)];
end
end
if nargin < 4... |
github | zhouyuanzxcv/Hyperspectral-master | image2graph.m | .m | Hyperspectral-master/common/image2graph.m | 3,333 | utf_8 | 98ee8901d3e853f774e44056bfaa9a05 | function [W,M] = image2graph(im,eta,threshold,fcn_weight)
%LABEL2GRAPH Construct a graph from the image based on one order
%neighborhood.
% Input:
% im - rows by cols by B image
% eta - used in the heat kernel for calculating the weights
% threshold - truncate small values in the weights to 0
% fcn_weight - fu... |
github | zhouyuanzxcv/Hyperspectral-master | permute_endmembers.m | .m | Hyperspectral-master/common/permute_endmembers.m | 1,858 | utf_8 | 7206c829674436de4031f76804dcc9f0 | function [P,M2_1] = permute_endmembers(M1,M2)
% PERMUTE_ENDMEMBERS
% Permute the rows of M2 such that the difference between M1 and M2 is
% minimized.
% Input:
% M1 - ground truth endmembers
% M2 - algorithm endmembers
% Output:
% P - size(M1,1) by size(M2,1) permutation matrix
% M2_1 - permuted M2
P = zeros(si... |
github | zhouyuanzxcv/Hyperspectral-master | visualize_hyper_cube.m | .m | Hyperspectral-master/common/visualize_hyper_cube.m | 2,465 | utf_8 | cd879c91ebd9047d3a383d5a52fb4239 | function visualize_hyper_cube(I, wl, scale)
%VISUAL_HYPER_IMAGE Summary of this function goes here
% Detailed explanation goes here
if nargin < 1
if 0
I = imread('salton_sea_roi_3.2015.jpg');
I = im2double(I);
I = cat(3, I(:,:,3), I(:,:,2), I(:,:,1));
wl = [0.47, 0.56, 0.65];
... |
github | zhouyuanzxcv/Hyperspectral-master | endmember_scatter_plot_impl.m | .m | Hyperspectral-master/common/endmember_scatter_plot_impl.m | 2,641 | utf_8 | 3f8c7f4681044b4be5220afa2b5c8863 | function [mapping, hs, axes_h, fig_h] = endmember_scatter_plot_impl(Y,M,names,options)
%ENDMEMBER_SCATTER_PLOT_IMPL Summary of this function goes here
% Detailed explanation goes here
Xs = [];
update = 0;
hs = cell(1, M + 1);
axes_h = [];
fig_h = [];
dimension_num = 2;
colors = distinguishable_colors(M);
fcn_draw_e... |
github | zhouyuanzxcv/Hyperspectral-master | show_abundances.m | .m | Hyperspectral-master/common/show_abundances.m | 2,622 | utf_8 | 14177a6e5c77350944379577d07dd319 | function [imhs, fig_h] = show_abundances(A2, m, n, title, plot_row, plot_col, options)
if nargin < 2
if ndims(A2) ~= 3
return;
end
end
if nargin < 4
title = 'Abundances';
end
if ndims(A2) == 3
[m,n,M] = size(A2);
A2 = reshape(A2, [m*n,M]);
end
endmember_num = size(A2,2);
if nargin < 5 || ... |
github | zhouyuanzxcv/Hyperspectral-master | hist_end_var.m | .m | Hyperspectral-master/common/hist_end_var.m | 2,169 | utf_8 | 484e8c333b2b102105814029bdab171f | function hist_end_var(Y,A,names,thresh,options)
%HIST_END_VAR Display histogram of pure pixels.
% Input:
% Y - N by B pixel data
% A - N by M abundance maps
% names - ground truth names
if nargin < 4
thresh = 0.99;
end
if nargin < 5
options = [];
end
show_approx = parse_param(options, 'show_approx', 0)... |
github | zhouyuanzxcv/Hyperspectral-master | show_endmembers.m | .m | Hyperspectral-master/common/show_endmembers.m | 997 | utf_8 | 05ccc8460305ae6980efb7a7280441a6 | function show_endmembers(M2,wl,names,options)
if nargin < 3
M = size(M2,1);
names = cell(1,M);
for i = 1:M
names{i} = ['endmember ',num2str(i)];
end
end
if nargin < 4
options = [];
end
bbl = parse_param(options,'bbl',[]);
figure;
if ~iscell(M2)
lines = show_spectra_in_one_plot(wl, M2, b... |
github | zhouyuanzxcv/Hyperspectral-master | endmember_scatter_plot_end_var.m | .m | Hyperspectral-master/common/endmember_scatter_plot_end_var.m | 1,014 | utf_8 | 078e81a6459da3fee70d522c29f3b5f2 | function [mapping, hs, axes_h, fig_h] = endmember_scatter_plot_end_var(Y,ws,mus,sigmas,names,options)
%ENDMEMBER_SCATTER_PLOT Summary of this function goes here
% Detailed explanation goes here
M = length(ws);
options.ws = ws;
options.mus = mus;
options.sigmas = sigmas;
options.fcn_draw_endmembers = @draw_endmembers;... |
github | zhouyuanzxcv/Hyperspectral-master | distinguishable_colors.m | .m | Hyperspectral-master/common/distinguishable_colors.m | 5,753 | utf_8 | 57960cf5d13cead2f1e291d1288bccb2 | function colors = distinguishable_colors(n_colors,bg,func)
% DISTINGUISHABLE_COLORS: pick colors that are maximally perceptually distinct
%
% When plotting a set of lines, you may want to distinguish them by color.
% By default, Matlab chooses a small set of colors and cycles among them,
% and so if you have more than ... |
github | zhouyuanzxcv/Hyperspectral-master | calc_abundance_error.m | .m | Hyperspectral-master/common/calc_abundance_error.m | 756 | utf_8 | 1bf0592d807d29701e699052c5a88ab8 | function [error_avg,error_A] = calc_abundance_error(A1,A2)
%CALC_ABUNDANCE_ERROR Calculate RMSE for each column of A1 and A2
if ~isfloat(A1)
A1 = double(A1);
end
if length(unique(A1(:))) == 2
is_real_dataset = 1;
else
is_real_dataset = 0;
end
P = permute_abundances(A1,A2);
if nanmean(nanmean(abs(eye(size(... |
github | zhouyuanzxcv/Hyperspectral-master | test_scm.m | .m | Hyperspectral-master/SCM/test_scm.m | 4,834 | utf_8 | 0c3a3ad26c9a7271704b29e8b13f448c | function [ output_args ] = test_scm( input_args )
%TEST_OBJ_FUN Summary of this function goes here
% Detailed explanation goes here
close all;
addpath('../common');
addpath('../AsterSpectralLibrary');
addpath('../VCA');
addpath('../');
dataset = '2';
options.beta1 = 0;
options.beta2 = 0;
options.rho1 = 0;
options.s... |
github | zhouyuanzxcv/Hyperspectral-master | solve_for_d_S.m | .m | Hyperspectral-master/SCM/solve_for_d_S.m | 5,059 | utf_8 | e6ec856c1761213b12223834d028f689 | function [d,S] = solve_for_d_S(Y,A,R,options)
[N,B] = size(Y);
M = size(A,2);
sigma0 = 0.1; % initial sigma
sigma_max = 1;
sigma_min = 1e-9;
delta_t0 = 1e-9;
disp('Start estimating D and S');
C = kron((A'*A),eye(B));
YAR = (Y-A*R)';
Z = YAR*A;
E = diag(sum(YAR.^2,2));
F1 = YAR*A;
F = zeros(M*B,B);
for i = 1:M
F((... |
github | zhouyuanzxcv/Hyperspectral-master | scm.m | .m | Hyperspectral-master/SCM/scm.m | 6,064 | utf_8 | c9f1726dc62e0c619937a8962d13586f | function [A,R,mu,sigma,var_dirs,var_amts] = scm(I,M,options)
%SCM Spatial compositional model
% Input:
% I: row*col*B image data
% M: number of endmembers
% options: structure for additional parameters
% Output:
% A: abundances (N by M)
% R: endmembers (M by B)
% mu: noise std
% sigma: uncertainty of endm... |
github | zhouyuanzxcv/Hyperspectral-master | prepare_calc_reg_obj.m | .m | Hyperspectral-master/REG/prepare_calc_reg_obj.m | 577 | utf_8 | 8e459a6c365649d360406a17226e8b4b | function options = prepare_calc_reg_obj(I1, wl, options)
%PREPARE_LSQ_REG Summary of this function goes here
% Detailed explanation goes here
Y1 = calc_Y1(I1, wl, options);
Y1Y = Y1'*Y1;
options.Y1 = Y1;
% options.U = calc_U(I1, wl);
% options.Y1Y = Y1Y;
% options.Y1Yinv = inv(options.Y1Y);
lambda = options.lambda ... |
github | zhouyuanzxcv/Hyperspectral-master | hyper_rgb_comparison.m | .m | Hyperspectral-master/REG/hyper_rgb_comparison.m | 17,801 | utf_8 | a94e003c5ff31d472a04ab154d72acc2 | function varargout = hyper_rgb_comparison(varargin)
% HYPER_RGB_COMPARISON MATLAB code for hyper_rgb_comparison.fig
% HYPER_RGB_COMPARISON, by itself, creates a new HYPER_RGB_COMPARISON or raises the existing
% singleton*.
%
% H = HYPER_RGB_COMPARISON returns the handle to a new HYPER_RGB_COMPARISON or t... |
github | zhouyuanzxcv/Hyperspectral-master | reg_hyper_rgb.m | .m | Hyperspectral-master/REG/reg_hyper_rgb.m | 4,093 | utf_8 | ac645b9f78d65b90b89a2e861593cdbc | function [T,degree,t,s,sigma,U,V] = reg_hyper_rgb(rgb1, I1, wl, options)
%REG_HYPER_RGB Summary of this function goes here
% Detailed explanation goes here
t_start_all = tic;
% set default parameters
options.lambda = parse_param(options,'lambda',1e-3);
%% prepare calculating objective function
% options.L = calc_li... |
github | zhouyuanzxcv/Hyperspectral-master | reg_fine_nonrigid.m | .m | Hyperspectral-master/REG/reg_fine_nonrigid.m | 2,990 | utf_8 | febf54d466d4b5f4774c913c5a196d5f | function options = reg_fine_nonrigid(rgb1, I1, wl, options)
%REG_FINE_NONRIGID Summary of this function goes here
% Detailed explanation goes here
t_start = tic;
I = double(rgb1) / 255;
nonrigid_model = parse_param(options,'nonrigid_model','LSQ freeform');
% used for B-spline with MI metric
O_trans = [];
Spacing =... |
github | zhouyuanzxcv/Hyperspectral-master | calc_reg_error.m | .m | Hyperspectral-master/REG/calc_reg_error.m | 1,946 | utf_8 | e963b33c02c4024616fcc9030bac7382 | function [mean_val,translations] = calc_reg_error(rgb1,I1,T,s,U,V,T2,s2,U2,V2)
%CALC_REG_ERROR Summary of this function goes here
% Detailed explanation goes here
[rows,cols,B] = size(I1);
[rows1,cols1,b] = size(rgb1);
% The two approaches give almost the same error
if 1
% calculate centers in the hi-resolution... |
github | zhouyuanzxcv/Hyperspectral-master | reg_fine_rigid.m | .m | Hyperspectral-master/REG/reg_fine_rigid.m | 1,437 | utf_8 | b9ef333b19e30bcace8f1447b31d008c | function options = reg_fine_rigid(rgb1, I1, wl, options)
%REG_FINE_RIGID Summary of this function goes here
% Detailed explanation goes here
t_start = tic;
% optimize the objective function by block coordinate descent
options = reg_fine_rigid_internal(rgb1, I1, wl, options);
disp(['Elapsed time for fine-scale rigid... |
github | zhouyuanzxcv/Hyperspectral-master | reg_init.m | .m | Hyperspectral-master/REG/reg_init.m | 5,733 | utf_8 | 806a8da1caaa449ff057fe768e389f2a | function [degree,t,s,sigma] = reg_init(rgb1, I1, wl, options)
% figure,imshow(uint8(rgb1));
% figure,imshow(uint8(retrieve_rgb(I1,wl)*255));
rgb1 = double(rgb1);
I1 = I1 * 255;
s = options.s;
sigma = 2*s;
s = [s,s]'; % s is the initial scaling
I2 = transform(rgb1, create_T(0,[0,0]), s, sigma, ...
floor(size(rgb1,... |
github | zhouyuanzxcv/Hyperspectral-master | optimize_wrt_V.m | .m | Hyperspectral-master/REG/optimization/optimize_wrt_V.m | 4,439 | utf_8 | 8297843de6e16a4d18dfe7b270274fd0 | function [U,V] = optimize_wrt_V(rgb1, I1, wl, options)
%OPTIMIZE_WRT_V Summary of this function goes here
% Detailed explanation goes here
degree = options.degree;
t = options.t;
s = options.s;
T = create_T(degree, t);
sigma = options.sigma;
I2 = double(rgb1) / 255;
I2 = transform(I2,T,s,sigma,size(I1,2),size(I1,1),... |
github | zhouyuanzxcv/Hyperspectral-master | optimize_wrt_sigma.m | .m | Hyperspectral-master/REG/optimization/optimize_wrt_sigma.m | 911 | utf_8 | 344ae69a23f958af9b1e879f321d9eb6 | function sigma = optimize_wrt_sigma(I, I1, options)
% set the left hand side (warp the hyperspectral image)
options.isRigid = 0;
I1 = transform(I1,eye(3),[1,1],1e-3,size(I1,2),size(I1,1),options);
options.isRigid = 1;
% configure the right hand side (transform the color image)
sigma_step = mean(options.s);
step_size =... |
github | zhouyuanzxcv/Hyperspectral-master | optimize_wrt_T_s.m | .m | Hyperspectral-master/REG/optimization/optimize_wrt_T_s.m | 7,675 | utf_8 | 22b4a3e4e64c670093a2daf7a9a11e58 | function [degree, t, s] = optimize_wrt_T_s(I, I1, wl, options)
% warp the hyperspectral image based on options.U and options.V
options.isRigid = 0;
I1 = transform(I1,eye(3),[1,1],1e-3,size(I1,2),size(I1,1),options);
options.isRigid = 1;
options = prepare_calc_reg_obj(I1,wl,options);
% optimize w.r.t degree, t and s
[... |
github | zhouyuanzxcv/Hyperspectral-master | calc_area.m | .m | Hyperspectral-master/REG/optimization/calc_area.m | 501 | utf_8 | 7f9fd19f4d4889800113bcf7642b695b | function A = calc_area(I)
% The derivative uses central difference and only applies to the interior
% points
der_x = calc_der_x(I(2:end-1,:,:));
der_y = calc_der_y(I(:,2:end-1,:));
G11 = sum(der_x.^2, 3) + 1;
G12 = sum(der_x.*der_y, 3);
G22 = sum(der_y.^2, 3) + 1;
A = sum(sum(sqrt(G11.*G22 - G12.^2)));
% A = sum(sum(G1... |
github | zhouyuanzxcv/Hyperspectral-master | calc_Laplacian_for_H1.m | .m | Hyperspectral-master/REG/optimization/calc_Laplacian_for_H1.m | 238 | utf_8 | fae2f1ab57844037a56dddb224e34617 | function L1 = calc_Laplacian_for_H1(B1)
B = B1 - 1;
L = calc_Laplacian_for_H(B);
L1 = zeros(B1,B1);
L1(2:end,2:end) = L;
function L = calc_Laplacian_for_H(B)
W = diag(ones(1,B-1),-1) + diag(ones(1,B-1),1);
D = diag(sum(W,2));
L = D - W;
|
github | zhouyuanzxcv/Hyperspectral-master | calc_reg_metric.m | .m | Hyperspectral-master/REG/optimization/calc_reg_metric.m | 2,627 | utf_8 | 7472ca37dc447669e20092dd55637837 | function val = calc_reg_metric(I1, I2, options)
%CALC_REG_METRIC Summary of this function goes here
% Detailed explanation goes here
% I1 is the fixed image, I2 is the moving image
% val = eval_obj_fun_nn(I1, I2, options);
if isfield(options,'reg_metric') && ~isempty(options.reg_metric)
if strcmp(options.reg_met... |
github | zhouyuanzxcv/Hyperspectral-master | kde2d.m | .m | Hyperspectral-master/REG/optimization/kde2d.m | 7,531 | utf_8 | 949f02382d40ade63e4f052c90e33e5d | function [bandwidth,density,X,Y]=kde2d(data,n,MIN_XY,MAX_XY)
% fast and accurate state-of-the-art
% bivariate kernel density estimator
% with diagonal bandwidth matrix.
% The kernel is assumed to be Gaussian.
% The two bandwidth parameters are
% chosen optimally without ever
% using/assuming a parametric model for the ... |
github | zhouyuanzxcv/Hyperspectral-master | nonrigid_transform.m | .m | Hyperspectral-master/REG/transform/nonrigid_transform.m | 2,860 | utf_8 | 646dae1aff89af9dccafc9239351191d | function I1 = nonrigid_transform(I, T, viewport_x, viewport_y, x_num, y_num, options)
if nargin < 7
options = [];
options.centers = [];
options.weights = [];
options.useGRBF = 0;
options.useTranslationField = 1;
options.U = zeros(y_num, x_num);
options.V = zeros(y_num, x_num);
end
RaiseExcep... |
github | zhouyuanzxcv/Hyperspectral-master | WorkerObjWrapper.m | .m | Hyperspectral-master/REG/transform/WorkerObjWrapper.m | 7,900 | utf_8 | 4ce51bfcd0c4fdf185d2fe01961c9870 | % WorkerObjWrapper - manage persistent state on MATLABPOOL workers
%
% The WorkerObjWrapper is designed for situations where a piece of data is
% needed multiple times inside the body of a PARFOR loop or an SPMD block, and
% this piece of data is both expensive to create, and does not need to be
% re-created multiple t... |
github | zhouyuanzxcv/Hyperspectral-master | transform.m | .m | Hyperspectral-master/REG/transform/transform.m | 2,451 | utf_8 | f3d574a8ce1a8a264354c20b40067960 | function [I1,I2,g,extra] = transform(I, T, s, sigma, cols, rows, options)
% TRANSFORM
% Output:
% I1 - final transformed image
% I2 - image before scaling
% g - point spread function
% extra - [extra_x, extra_y] extra pixels in the PSF transform
% Coordinates of image are assumed to range from 0.5 to cols - 0.... |
github | zhouyuanzxcv/Hyperspectral-master | rigid_transform.m | .m | Hyperspectral-master/REG/transform/rigid_transform.m | 1,290 | utf_8 | e8f230013d9b7e52f907b1c4de332d9e | function I1 = rigid_transform(I, T, viewport_x, viewport_y, x_num, y_num, options)
if nargin < 7
options = [];
end
RaiseExceptionForExceeding = parse_param(options,'RaiseExceptionForExceeding',0);
FillValues = parse_param(options,'FillValues',0);
xi = linspace(viewport_x(1), viewport_x(2), x_num);
yi = linspace(vi... |
github | zhouyuanzxcv/Hyperspectral-master | manually_warp_images.m | .m | Hyperspectral-master/REG/mi_bspline/manually_warp_images.m | 20,885 | utf_8 | 99d389af428709425fe2acd4bd76ed36 | function varargout = manually_warp_images(varargin)
% MANUALLY_WARP_IMAGES, is a GUI which shows the controlpoint grid used
% during registration of two images, allowing the user to drag control
% points to get a better initial alignement before pressing the start
% registration button.
%
% Example,
% Istatic=im2do... |
github | zhouyuanzxcv/Hyperspectral-master | point_registration.m | .m | Hyperspectral-master/REG/mi_bspline/point_registration.m | 7,589 | utf_8 | 2150f9db00b1faf9519d997a1e90b791 | function [O_trans,Spacing,Xreg]=point_registration(sizeI,Xmoving,Xstatic,Options)
% This function creates a 2D or 3D b-spline grid, which transform space to
% fit a set of points Xmoving to set of corresponding points in Xstatic.
% Usefull for:
% - For image-registration based on corresponding landmarks like in
% Sif... |
github | zhouyuanzxcv/Hyperspectral-master | image_registration.m | .m | Hyperspectral-master/REG/mi_bspline/image_registration.m | 27,867 | utf_8 | 49dfc87c161c6a4c867648067e952ef0 | function [Ireg,O_trans,Spacing,M,B,F] = image_registration(Imoving,Istatic,Options)
% This function image_registration is the most easy way to register two
% 2D or 3D images both affine and nonrigidly.
%
% Features:
% - It can be used with images from different type of scans or modalities.
% - It uses both a rigid tran... |
github | zhouyuanzxcv/Hyperspectral-master | reg_hyper_fft.m | .m | Hyperspectral-master/REG/reg_fft/reg_hyper_fft.m | 14,349 | utf_8 | 83bde883f7335e80fcfda16e8d493c3f | function [tform, degree, s, t] = reg_hyper_fft(I1, I, wl, transformation, windowing)
%REG_HYPER_FFT Summary of this function goes here
% Detailed explanation goes here
if nargin < 4
transformation = 'similarity';
end
if nargin < 5
windowing = 1;
end
rgb_ind = find_rgb_ind(wl);
bands_sel = false(1,length(wl))... |
github | zhouyuanzxcv/Hyperspectral-master | test_fft_reg.m | .m | Hyperspectral-master/REG/reg_fft/test_fft_reg.m | 2,891 | utf_8 | 777484de94a8ecabe623f63d7b862760 | function [ output_args ] = test_fft_reg( input_args )
%TEST_FFT_REG Summary of this function goes here
% Detailed explanation goes here
addpath('reg_fft');
close all
%% load or create image
dataset = '11';
switch dataset
case '00'
load('../../data/PaviaUniversity_corrected.mat');
SRF = [0.2,0.4,... |
github | zhouyuanzxcv/Hyperspectral-master | phasecorr2_old.m | .m | Hyperspectral-master/REG/reg_fft/phasecorr2_old.m | 1,610 | utf_8 | 69e4ace21ead4ba94cf7252d0ff1aba7 | function d = phasecorr2(I1, I)
size_I1 = size(I1);
size_I = size(I);
outSize = size_I1(1:2) + size_I(1:2) - 1;
I = cat(3, ones(size(I,1), size(I,2)), I);
ds = [];
% [I,M] = scm_decompose(I);
% mask = create_gaussian(outSize(1), outSize(2));
for k = 1:size(I1,3)
f = [];
F1 = fft2(I1(:,:,k), outSize(1), outSiz... |
github | bozso/orb_prop-master | op_main.m | .m | orb_prop-master/functions/op_main.m | 31,209 | utf_8 | 9bc92397a8317d472026bd2ff255429f | function out = op_main(fun_name, varargin)
switch(fun_name)
case 'sgp4_propagate'
out = sgp4_propagate(varargin{:})
case 'rk_propagate'
out = rk_propagate(varargin{:})
case 'plot_orbit'
plot_orbit(varargin{:})
otherwise
error(['Unk... |
github | bozso/orb_prop-master | rv2eq.m | .m | orb_prop-master/vallado/rv2eq.m | 3,175 | utf_8 | acbdad069e9d11801eeedfddfa093967 | % ----------------------------------------------------------------------------
%
% function rv2eq.m
%
% this function transforms a position and velocity vector into the flight
% elements - latgc, lon, fpa, az, position and velocity magnitude.
%
% author : david vallado ... |
github | bozso/orb_prop-master | azl2radc.m | .m | orb_prop-master/vallado/azl2radc.m | 689 | utf_8 | 88e4f03dce0f3fb831b42a137e30b3e9 |
% azl2radc
%
% this function finds the rtasc decl values given the az-el
%
%
%
function [rtasc,decl] = azl2radc(az,el,lat,lst);
rad = 180.0/pi
decl = asin( sin(el)*sin(lat) + cos(el)*cos(lat)*cos(az) );
slha1 = -( sin(az)*cos(el)*cos(lat) ) / ( cos(decl)*cos(lat) );
clha1 = ( sin(el) -... |
github | bozso/orb_prop-master | covcl2eq.m | .m | orb_prop-master/vallado/covcl2eq.m | 4,997 | utf_8 | 44d91f6375793e2973a2051a2e48951b | % ----------------------------------------------------------------------------
%
% function covcl2eq
%
% this function transforms a six by six covariance matrix expressed in
% classical elements into one expressed in equinoctial elements.
%
% author : david vallado ... |
github | bozso/orb_prop-master | getintda.m | .m | orb_prop-master/vallado/getintda.m | 1,032 | utf_8 | 20d49878dee43a87bc75f7bc236fd4e8 | %
% -----------------------------------------------------------------------------
%
% function getintda
%
% this function finds the integer equivalent of the 3 character string
% representation of the day of the week.
%
% author : david vallado 719-573-260... |
github | bozso/orb_prop-master | fk4i.m | .m | orb_prop-master/vallado/fk4i.m | 4,188 | utf_8 | 2d440944f977c7d2de2c8f96a707fa12 | % ----------------------------------------------------------------------------
%
% function fk4i
%
% this function converts vectors between the b1950 and j2000 epochs. be
% aware that this process is not exact. there are different secular rates
% for each system, and there are di... |
github | bozso/orb_prop-master | eci2ecef.m | .m | orb_prop-master/vallado/eci2ecef.m | 3,270 | utf_8 | f73eda3f857f6b869b2dba259183554a | %
% ----------------------------------------------------------------------------
%
% function eci2ecef
%
% this function trsnforms a vector from the mean equator mean equniox frame
% (j2000), to an earth fixed (ITRF) frame. the results take into account
% the effects of precess... |
github | bozso/orb_prop-master | findatwaatwb.m | .m | orb_prop-master/vallado/findatwaatwb.m | 13,616 | utf_8 | 083f5d45bd2a5f136a0c6ce6c7124e37 | % -----------------------------------------------------------------------------
%
% procedure findatwbatwa
%
% this procedure finds the a and b matrices for the differential correction
% problem. remember that it isn't critical for the propagations to use
% the highest fidelity tech... |
github | bozso/orb_prop-master | light.m | .m | orb_prop-master/vallado/light.m | 1,711 | utf_8 | e7fe6ed30611c3457a10f7defae70ed9 | % ------------------------------------------------------------------------------
%
% function light
%
% this function determines if a spacecraft is sunlit or in the dark at a
% particular time. an oblate earth and cylindrical shadow is assumed.
%
% author : david vallado ... |
github | bozso/orb_prop-master | pkepler.m | .m | orb_prop-master/vallado/pkepler.m | 5,408 | utf_8 | 44af2151af8be6651532e3354413951d | %
% ------------------------------------------------------------------------------
%
% function pkepler
%
% this function propagates a satellite's position and velocity vector over
% a given time period accounting for perturbations caused by j2.
%
% author : david vallado ... |
github | bozso/orb_prop-master | doubler.m | .m | orb_prop-master/vallado/doubler.m | 4,128 | utf_8 | bcfe875fca9e4b6f9ffa52733bdbcb51 | %
% this rountine accomplishes the iteration work for the double-r angles
% only routine
%
%
% dav 12-23-03
%
function [r2,r3,f1,f2,q1,magr1,magr2,a,deltae32] = doubler( cc1,cc2,magrsite1,magrsite2,magr1in,magr2in,...
los1,los2,los3,rsite1,rsite2,rsite3,t1,t3,direct, re, mu);
% re =... |
github | bozso/orb_prop-master | ecef2teme.m | .m | orb_prop-master/vallado/ecef2teme.m | 2,636 | utf_8 | 7b2207c196df38475c2926ae73968e9c | % ----------------------------------------------------------------------------
%
% function ecef2teme
%
% this function trsnforms a vector from the earth fixed (ITRF) frame to the
% true equator mean equniox frame (teme). the results take into account
% the effects of sidereal ti... |
github | bozso/orb_prop-master | findtof.m | .m | orb_prop-master/vallado/findtof.m | 3,525 | utf_8 | 2187aabe437b0967df5918692430385f | % ------------------------------------------------------------------------------
%
% function findtof
%
% this function finds the time of flight given the initial position vectors,
% semi-parameter, and the sine and cosine values for the change in true
% anomaly. the result uses ... |
github | bozso/orb_prop-master | covfl2ct.m | .m | orb_prop-master/vallado/covfl2ct.m | 8,792 | utf_8 | c434ca197ccc3ae0b7a1146787c7fb36 | % ----------------------------------------------------------------------------
%
% function covfl2ct
%
% this function transforms a six by six covariance matrix expressed in
% flight elements into one expressed in cartesian elements.
%
% author : david vallado ... |
github | bozso/orb_prop-master | rv2adbar.m | .m | orb_prop-master/vallado/rv2adbar.m | 2,104 | utf_8 | 306bd1c89257ad481f1c2eb6b936fc25 | %
% ----------------------------------------------------------------------------
%
% function rv2adbar.m
%
% this function transforms a position and velocity vector into the adbarv
% elements - rtasc, decl, fpav, azimuth, position and velocity magnitude.
%
% author : david... |
github | bozso/orb_prop-master | rv2rsw.m | .m | orb_prop-master/vallado/rv2rsw.m | 2,403 | utf_8 | ede809430a0c3325b87180b39df4b6b7 | % ------------------------------------------------------------------------------
%
% function rv2rsw
%
% this function converts position and velocity vectors into radial, tangential (in-
% track), and normal (cross-track) coordinates. note that there are numerous
% nomenclatures ... |
github | bozso/orb_prop-master | eci2tod.m | .m | orb_prop-master/vallado/eci2tod.m | 2,183 | utf_8 | fac9bcf04514153131ecabaae9af31a7 | %
% ----------------------------------------------------------------------------
%
% function eci2tod
%
% this function transforms a vector from the mean equator mean equinox frame
% (j2000) to the true equator true equinox of date (tod).
%
% author : david vallado ... |
github | bozso/orb_prop-master | days2mdh.m | .m | orb_prop-master/vallado/days2mdh.m | 2,352 | utf_8 | a8d088391fa0cdbef291f4e16314eed7 | % ------------------------------------------------------------------------------
%
% function days2mdh
%
% this function converts the day of the year, days, to the equivalent month
% day, hour, minute and second.
%
% author : david vallado 719-573-2600 22 ... |
github | bozso/orb_prop-master | dspace.m | .m | orb_prop-master/vallado/dspace.m | 7,516 | utf_8 | fbc98ef9f67b75c148255fff569be445 | % -----------------------------------------------------------------------------
%
% procedure dspace
%
% this procedure provides deep space contributions to mean elements for
% perturbing third body. these effects have been averaged over one
% revolution of the sun and moon. ... |
github | bozso/orb_prop-master | eci2hill.m | .m | orb_prop-master/vallado/eci2hill.m | 2,459 | utf_8 | b7b8b413f9b60075ae8c1ac3ab43eac7 | % ------------------------------------------------------------------------------
%
% function eci2hill
%
% this function finds the relative pos/vel vectors given the ECI target and
% interceptor vectors.
%
% Routine not dependent on km or m for distance unit
% all vectors are colu... |
github | bozso/orb_prop-master | covcl2ctnew.m | .m | orb_prop-master/vallado/covcl2ctnew.m | 14,384 | utf_8 | b10e510cf03b3bd3c5cc8c6c4db10376 | % ----------------------------------------------------------------------------
%
% function covcl2ct
%
% this function transforms a six by six covariance matrix expressed in classical elements
% into one expressed in cartesian elements
%
% author : david vallado
%
% revis... |
github | bozso/orb_prop-master | lstime.m | .m | orb_prop-master/vallado/lstime.m | 1,364 | utf_8 | 60dcb66cf852e73f32e3c27f05d56eec | % -----------------------------------------------------------------------------
%
% function lstime
%
% this function finds the local sidereal time at a given location.
%
% author : david vallado 719-573-2600 27 may 2002
%
% revisions
% -
%... |
github | bozso/orb_prop-master | eci2mod.m | .m | orb_prop-master/vallado/eci2mod.m | 1,575 | utf_8 | 5d3077f444c554b10e2b35afabcd0e4b | %
% ----------------------------------------------------------------------------
%
% function eci2mod
%
% this function transfroms a vector from the mean equator, mean equinox frame
% (j2000), to the mean equator mean equinox of date (mod).
%
% author : david vallado ... |
github | bozso/orb_prop-master | cubicspl1.m | .m | orb_prop-master/vallado/cubicspl1.m | 3,173 | utf_8 | fead37b59bb662283ac33e788c402416 | %
% ------------------------------------------------------------------------------
%
% function cubicspl
%
% this function performs cubic splining of an input zero crossing
% function in order to find event times.
%
% author : david vallado 719-573-2600 1... |
github | bozso/orb_prop-master | polarm.m | .m | orb_prop-master/vallado/polarm.m | 2,998 | utf_8 | a76c6ad0cbcd3d61bcfede465e7b1a2d | %
% ----------------------------------------------------------------------------
%
% function polarm
%
% this function calulates the transformation matrix that accounts for polar
% motion. both the 1980 and 2000 theories are handled. note that the rotation
% order is different ... |
github | bozso/orb_prop-master | raz2rvs.m | .m | orb_prop-master/vallado/raz2rvs.m | 2,305 | utf_8 | 67c81106859ed38477c84e3c6e99a50e | % ------------------------------------------------------------------------------
%
% function raz2rvs
%
% this function converts range, azimuth, and elevation values with slant
% range and velocity vectors for a satellite from a radar site in the
% topocentric horizon (sez) system... |
github | bozso/orb_prop-master | hms2rad.m | .m | orb_prop-master/vallado/hms2rad.m | 1,249 | utf_8 | b377193ab51c21ccf9b946912cd9c3cc | % -----------------------------------------------------------------------------
%
% function hms2rad
%
% this function converts hours, minutes and seconds into radians. notice
% the conversion 0.2617 is simply the radian equivalent of 15 degrees.
%
% author : david vallado ... |
github | bozso/orb_prop-master | anglesl.m | .m | orb_prop-master/vallado/anglesl.m | 9,945 | utf_8 | 37f0bc9f86a31e29c84e4e1c23568da1 | % ------------------------------------------------------------------------------
%
% function anglesl
%
% this function solves the problem of orbit determination using three
% optical sightings and the method of laplace.
%
% author : david vallado 719-573-26... |
github | bozso/orb_prop-master | nodeonly.m | .m | orb_prop-master/vallado/nodeonly.m | 2,503 | utf_8 | 4a6d00fe78f8b925268de91a830aca2e | % ------------------------------------------------------------------------------
%
% procedure nodeonly
%
% this procedure calculates the delta v's for a change in longitude of
% ascending node only.
%
% author : david vallado 719-573-2600 1 mar 2001
%
... |
github | bozso/orb_prop-master | rv2radec.m | .m | orb_prop-master/vallado/rv2radec.m | 2,261 | utf_8 | b7ffa3f8af58988e193e66a83444fe5c | % ------------------------------------------------------------------------------
%
% function rv2radec
%
% this function converts the right ascension and declination values with
% position and velocity vectors of a satellite. uses velocity vector to
% find the solution of singular... |
github | bozso/orb_prop-master | quintic.m | .m | orb_prop-master/vallado/quintic.m | 7,369 | utf_8 | 32f2c7a0763c1a32911396123aa7e7e3 | %
% ------------------------------------------------------------------------------
%
% function quintic
%
% this function solves for the five roots of a quintic equation. there are
% no restrictions on the coefficients, and imaginary results are passed
% out as separate values.... |
github | bozso/orb_prop-master | gd2gc.m | .m | orb_prop-master/vallado/gd2gc.m | 1,106 | utf_8 | 87002dc75b37e69880b3fd208441ff58 | % ------------------------------------------------------------------------------
%
% function gd2gc
%
% this function converts from geodetic to geocentric latitude for positions
% on the surface of the earth. notice that (1-f) squared = 1-esqrd.
%
% author : david vallado ... |
github | bozso/orb_prop-master | iau00i2f.m | .m | orb_prop-master/vallado/iau00i2f.m | 4,719 | utf_8 | c7684f05db8bdd96f6d821865f54ee36 | % ----------------------------------------------------------------------------
%
% function iau00i2f
%
% this function trsnforms a vector from the mean equator mean equniox frame
% (gcrf), to an earth fixed (itrf) frame. the results take into account
% the effects of precession, ... |
github | bozso/orb_prop-master | gstime0.m | .m | orb_prop-master/vallado/gstime0.m | 1,871 | utf_8 | 1210a0d10875291db1acc7a308cb8550 | % -----------------------------------------------------------------------------
%
% function gstime0
%
% this function finds the greenwich sidereal time at the beginning of a year.
% this formula is derived from the astronomical almanac and is good only
% 0 hr ut1, jan 1 of a year... |
github | bozso/orb_prop-master | jday.m | .m | orb_prop-master/vallado/jday.m | 1,930 | utf_8 | e4e97f57233ee816974ed470a42a634b | % -----------------------------------------------------------------------------
%
% function jday.m
%
% this function finds the julian date given the year, month, day, and time.
%
% author : david vallado 719-573-2600 27 may 2002
%
% revisions
% ... |
github | bozso/orb_prop-master | lon2nu.m | .m | orb_prop-master/vallado/lon2nu.m | 1,813 | utf_8 | b9de4596e837c5f35beef63de841ec2d | %
% convert orbital elments and find nu
% input all angles in rad
% output is in rad
% dav 6 may 2011
%
% jdut1=jday(2011,3,22,12,30,0);
% incl = 0.04801366433780/rad;
% raan = 330.034263262230/rad;
% argp = 91.3766761083524/rad;
% lon = -7.2935047164727/rad;
%
% jdut1=jday(2014, 7, 26, 0, 0, 0.0);... |
github | bozso/orb_prop-master | dayofwee.m | .m | orb_prop-master/vallado/dayofwee.m | 1,114 | utf_8 | d80028aeabcc2f60510acce6e1030f2d | % -----------------------------------------------------------------------------
%
% function dayofwee
%
% this function finds the day of the week. integers are used for the days,
% 1 = 'sun', 2 = 'mon', ... 7 = 'sat'.
%
% author : david vallado 719-573-2600 ... |
github | bozso/orb_prop-master | sun.m | .m | orb_prop-master/vallado/sun.m | 4,000 | utf_8 | 3b882dbe33af7482a6718183f81067ce | %
% ------------------------------------------------------------------------------
%
% function sun
%
% this function calculates the geocentric equatorial position vector
% the sun given the julian date. this is the low precision formula and
% is valid for years from 1950 to 20... |
github | bozso/orb_prop-master | twoline2rv.m | .m | orb_prop-master/vallado/twoline2rv.m | 10,700 | utf_8 | ea85a495b40fc244e71d5a4284e96fcb | % -----------------------------------------------------------------------------
%
% procedure twoline2rv
%
% this function converts the two line element set character string data to
% variables and initializes the sgp4 variables. several intermediate varaibles
% and quantities... |
github | bozso/orb_prop-master | jd2sse.m | .m | orb_prop-master/vallado/jd2sse.m | 912 | utf_8 | 4ed4443f3d69338b8a4d2ebd2807675b | % -----------------------------------------------------------------------------
%
% function jd2sse.m
%
% this function finds the seconds since epoch (1 Jan 2000) given the julian date
%
% author : david vallado 719-573-2600 12 dec 2002
%
% revisions
% ... |
github | bozso/orb_prop-master | find_nu_from_orbit_arc2_sal.m | .m | orb_prop-master/vallado/find_nu_from_orbit_arc2_sal.m | 1,556 | utf_8 | e3dfa8dea24c0bc3ee49c7eca1d1e58d | % ------------------------------------------------------------------------------
%
% function find_nu_from_orbit_arc_sal
%
%
% Finds true anomaly associated with arc length on a closed orbit
% starts at nu1 and walks to nu2 (in radians) to tolerance dE.
% Arc length is determined by di... |
github | bozso/orb_prop-master | sec2hms.m | .m | orb_prop-master/vallado/sec2hms.m | 1,190 | utf_8 | 1479e6e104ecbdbaf24d9bbacacf23ab | % -----------------------------------------------------------------------------
%
% function sec2hms
%
% this function converts seconds from the beginning of the day into hours,
% minutes and seconds.
%
% author : david vallado 719-573-2600 25 jun 2002
%
... |
github | bozso/orb_prop-master | biellip.m | .m | orb_prop-master/vallado/biellip.m | 4,213 | utf_8 | 996db8ffdad988df3cf03f73ba90299e | % ------------------------------------------------------------------------------
%
% procedure biellip
%
% this procedure calculates the delta v's for a bi-elliptic transfer for either
% circle to circle, or ellipse to ellipse.
%
% author : david vallado 71... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.