Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
32e25ea7
Commit
32e25ea7
authored
12 years ago
by
Wolfgang Ludwig
Committed by
Nicola Vigano
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix problem with selected image in gtSetupSegmentation_doublethr
Add 3rd parameter to gtMathVectorAngles
parent
24cd7fa4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
2_difspot/gtSetupSegmentation_doublethr.m
+8
-6
8 additions, 6 deletions
2_difspot/gtSetupSegmentation_doublethr.m
zUtil_Maths/gtMathsVectorsAngles.m
+1
-1
1 addition, 1 deletion
zUtil_Maths/gtMathsVectorsAngles.m
with
9 additions
and
7 deletions
2_difspot/gtSetupSegmentation_doublethr.m
+
8
−
6
View file @
32e25ea7
...
...
@@ -321,18 +321,20 @@ fnames = fnames(ind);
% get 4 evenly spaced images
check = inputwdefault('Do you have any suggested numbers ofr images? [y/n]','n');
check = inputwdefault('Do you have any suggested numbers for images? [y/n]','n');
getfulls = 1;
if strcmp(check, 'y')
getfulls = input('Insert image numbers in squared brackets (the first 4 are used):');
end
% remove duplicates if existing
getfulls = unique(getfulls);
if length(getfulls) < 4
getfulls = [getfulls, round(1:(length(fnames)/(4-length(getfulls))):length(fnames)) length(fnames)];
elseif length(getfulls) > 4
% remove exceeding numbers
getfulls(5:end,:) = [];
end
% remove duplicates if existing
getfulls = unique(getfulls);
disp('Using those images to segment: ')
disp(getfulls)
...
...
@@ -516,13 +518,13 @@ set(h_imp,'Position', [10 h_figpos(4)-30 150 30]);
% change the full image
function sfChangeFull(fig, eventdata)
StackIndex = find([u1 u2 u3 u4 u5] == eventdata.NewValue);
full
_im
= fullstack(:, :, StackIndex);
full = fullstack(:, :, StackIndex);
ThreshFull = threshstack(:,:,StackIndex);
Values.ShowThresholded = false;
subplot(1,2,1)
imshow(full
_im
, gtAutolim(full
_im
))
imshow(full, gtAutolim(full))
% open impixelinfo in upper left corner
figpos = get(fig,'Position');
...
...
@@ -542,7 +544,7 @@ set(h_imp,'Position', [10 h_figpos(4)-30 150 30]);
if (Values.ShowThresholded)
% check just the first pixel
if (ValuesChanged || isnan(ThreshFull(1)))
ThreshFull = sfDoThresholding(full, Values);
ThreshFull = sfDoThresholding(full, Values);
%changed here
threshstack(:, :, StackIndex) = ThreshFull;
else
% if we already have a non NaN ThreshFull
...
...
This diff is collapsed.
Click to expand it.
zUtil_Maths/gtMathsVectorsAngles.m
+
1
−
1
View file @
32e25ea7
...
...
@@ -10,4 +10,4 @@ disp(' angrad = gtMathsVectorsAnglesRad(v1,v2,colvec)')
disp
(
' angdeg = gtMathsVectorsAnglesDeg(v1,v2,colvec)'
)
error
(
'Function is out-of-date!'
)
end
\ No newline at end of file
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment