Folder restructuring.
This commit is contained in:
parent
4d82c15331
commit
f2c8fc9d94
@ -86,9 +86,9 @@ end
|
||||
|
||||
% ===== Collect Images and Launch Viewer =====
|
||||
|
||||
[options.selectedPath, options.folderPath] = Helper.selectDataSourcePath(dataSources, options);
|
||||
[options.selectedPath, options.folderPath] = Helper.selectDataSourcePath(dataSources, options);
|
||||
|
||||
[od_imgs, scan_parameter_values, scan_reference_values, file_list] = Helper.collectODImages(options);
|
||||
[od_imgs, scan_parameter_values, scan_reference_values, ~] = Helper.collectODImages(options);
|
||||
|
||||
% === Plot raw images ===
|
||||
n_total = numel(scan_parameter_values);
|
||||
@ -112,10 +112,21 @@ end
|
||||
idxKeep = idxKeep(idxKeep>0);
|
||||
|
||||
scan_reference_values_plot = scan_reference_values(idxKeep);
|
||||
od_imgs_plot = od_imgs(idxKeep);
|
||||
|
||||
nParamsPlot = numel(scan_reference_values_plot);
|
||||
|
||||
% === Collect ALL repetitions for each kept parameter ===
|
||||
od_imgs_grouped = cell(nParamsPlot, 1);
|
||||
|
||||
for k = 1:nParamsPlot
|
||||
paramVal = scan_reference_values_plot(k);
|
||||
|
||||
% Find all repetitions for this parameter value
|
||||
repIdx = find(ismembertol(scan_parameter_values, paramVal, 1e-6));
|
||||
|
||||
% Store images + parameter values
|
||||
od_imgs_grouped{k} = od_imgs(repIdx);
|
||||
end
|
||||
|
||||
figure(101); clf;
|
||||
set(gcf, 'Position', [100 100 950 750]);
|
||||
|
||||
@ -131,7 +142,7 @@ for r = 1:nRepsPlot
|
||||
allAxes(r,j) = ax;
|
||||
|
||||
% Extract OD image for this scan parameter and repetition
|
||||
od = od_imgs_plot{j};
|
||||
od = od_imgs_grouped{j}{r};
|
||||
|
||||
imagesc(od, 'Parent', ax);
|
||||
set(ax, 'YDir', 'normal');
|
||||
@ -86,9 +86,9 @@ end
|
||||
|
||||
% ===== Collect Images and Launch Viewer =====
|
||||
|
||||
[options.selectedPath, options.folderPath] = Helper.selectDataSourcePath(dataSources, options);
|
||||
[options.selectedPath, options.folderPath] = Helper.selectDataSourcePath(dataSources, options);
|
||||
|
||||
[od_imgs, scan_parameter_values, scan_reference_values, file_list] = Helper.collectODImages(options);
|
||||
[od_imgs, scan_parameter_values, scan_reference_values, ~] = Helper.collectODImages(options);
|
||||
|
||||
% === Plot raw images ===
|
||||
n_total = numel(scan_parameter_values);
|
||||
@ -112,10 +112,21 @@ end
|
||||
idxKeep = idxKeep(idxKeep>0);
|
||||
|
||||
scan_reference_values_plot = scan_reference_values(idxKeep);
|
||||
od_imgs_plot = od_imgs(idxKeep);
|
||||
|
||||
nParamsPlot = numel(scan_reference_values_plot);
|
||||
|
||||
% === Collect ALL repetitions for each kept parameter ===
|
||||
od_imgs_grouped = cell(nParamsPlot, 1);
|
||||
|
||||
for k = 1:nParamsPlot
|
||||
paramVal = scan_reference_values_plot(k);
|
||||
|
||||
% Find all repetitions for this parameter value
|
||||
repIdx = find(ismembertol(scan_parameter_values, paramVal, 1e-6));
|
||||
|
||||
% Store images + parameter values
|
||||
od_imgs_grouped{k} = od_imgs(repIdx);
|
||||
end
|
||||
|
||||
figure(101); clf;
|
||||
set(gcf, 'Position', [100 100 950 750]);
|
||||
|
||||
@ -131,7 +142,7 @@ for r = 1:nRepsPlot
|
||||
allAxes(r,j) = ax;
|
||||
|
||||
% Extract OD image for this scan parameter and repetition
|
||||
od = od_imgs_plot{j};
|
||||
od = od_imgs_grouped{j}{r};
|
||||
|
||||
imagesc(od, 'Parent', ax);
|
||||
set(ax, 'YDir', 'normal');
|
||||
@ -270,9 +281,9 @@ end
|
||||
|
||||
% ===== Collect Images and Launch Viewer =====
|
||||
|
||||
[options.selectedPath, options.folderPath] = Helper.selectDataSourcePath(dataSources, options);
|
||||
[options.selectedPath, options.folderPath] = Helper.selectDataSourcePath(dataSources, options);
|
||||
|
||||
[od_imgs, scan_parameter_values, scan_reference_values, file_list] = Helper.collectODImages(options);
|
||||
[od_imgs, scan_parameter_values, scan_reference_values, ~] = Helper.collectODImages(options);
|
||||
|
||||
% === Plot raw images ===
|
||||
n_total = numel(scan_parameter_values);
|
||||
@ -296,11 +307,22 @@ end
|
||||
idxKeep = idxKeep(idxKeep>0);
|
||||
|
||||
scan_reference_values_plot = scan_reference_values(idxKeep);
|
||||
od_imgs_plot = od_imgs(idxKeep);
|
||||
|
||||
nParamsPlot = numel(scan_reference_values_plot);
|
||||
|
||||
figure(101); clf;
|
||||
% === Collect ALL repetitions for each kept parameter ===
|
||||
od_imgs_grouped = cell(nParamsPlot, 1);
|
||||
|
||||
for k = 1:nParamsPlot
|
||||
paramVal = scan_reference_values_plot(k);
|
||||
|
||||
% Find all repetitions for this parameter value
|
||||
repIdx = find(ismembertol(scan_parameter_values, paramVal, 1e-6));
|
||||
|
||||
% Store images + parameter values
|
||||
od_imgs_grouped{k} = od_imgs(repIdx);
|
||||
end
|
||||
|
||||
figure(102); clf;
|
||||
set(gcf, 'Position', [100 100 950 750]);
|
||||
|
||||
% Rows = repetitions, Cols = selected scan parameter values
|
||||
@ -315,7 +337,7 @@ for r = 1:nRepsPlot
|
||||
allAxes(r,j) = ax;
|
||||
|
||||
% Extract OD image for this scan parameter and repetition
|
||||
od = od_imgs_plot{j};
|
||||
od = od_imgs_grouped{j}{r};
|
||||
|
||||
imagesc(od, 'Parent', ax);
|
||||
set(ax, 'YDir', 'normal');
|
||||
Loading…
x
Reference in New Issue
Block a user