Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions ForwardModel/runMCXlab.m
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,12 @@
cfg.isnormalized = 1;
cfg.outputtype = 'fluence';

cfg.prop=[ 0 0 1.0000 1.0000 % background/air
tiss_prop(1).absorption(iWav) tiss_prop(1).scattering(iWav) tiss_prop(1).anisotropy(1) tiss_prop(1).refraction(1)
tiss_prop(2).absorption(iWav) tiss_prop(2).scattering(iWav) tiss_prop(2).anisotropy(1) tiss_prop(2).refraction(1)
tiss_prop(3).absorption(iWav) tiss_prop(3).scattering(iWav) tiss_prop(3).anisotropy(1) tiss_prop(3).refraction(1)
tiss_prop(4).absorption(iWav) tiss_prop(4).scattering(iWav) tiss_prop(4).anisotropy(1) tiss_prop(4).refraction(1) ];
cfg.prop=[ 0 0 1.0000 1.0000 ]; % background/air
for i = 1:length(tiss_prop)
cfg.prop = [cfg.prop; ...
tiss_prop(i).absorption(iWav) tiss_prop(i).scattering(iWav) tiss_prop(i).anisotropy(1) tiss_prop(i).refraction(1)]

end

cfg.seed=floor(rand()*10e+7);
cfg.nphoton=num_phot;
Expand Down
11 changes: 4 additions & 7 deletions ImgRecon/ImageRecon.m
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,10 @@ function image_recon_Callback(~, ~, handles)
end

elseif value2 == 1 % brain and scalp reconstruction without short separation regression (Zhan2012)

Adot = Adot(activeChIdxs,:,:);
Adot = Adot(longSepChLst,:,:);

Adot_scalp = Adot_scalp(activeChIdxs,:,:);
Adot_scalp = Adot_scalp(longSepChLst,:,:);


Adot = Adot(activeChLst_SDpairs,:,:);
Adot_scalp = Adot_scalp(activeChLst_SDpairs,:,:);

% get alpha and beta for regularization
alpha = str2num(get(handles.alpha_brain_scalp,'String')); %#ok<*ST2NM>
beta = str2num(get(handles.beta_brain_scalp,'String'));
Expand Down