Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hydra-image-processor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
OpenSource
hydra-image-processor
Commits
30ea9aad
Commit
30ea9aad
authored
9 years ago
by
sundar
Browse files
Options
Downloads
Patches
Plain Diff
Getstats for MinFilterEllipsoid
parent
1a2206fc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MATLAB/Getstats_MinFilterEllipsoid.m
+42
-0
42 additions, 0 deletions
src/MATLAB/Getstats_MinFilterEllipsoid.m
with
42 additions
and
0 deletions
src/MATLAB/Getstats_MinFilterEllipsoid.m
0 → 100644
+
42
−
0
View file @
30ea9aad
function
results
=
Getstats_MinFilterEllipsoid
(
img1
,
radius
,
bytesize
)
% Collects stats of performance and accuracy for CudaMex and Matlab
% implementations of MinFilterEllipsoid
%
if
(
~
exist
(
'bytesize'
,
'var'
)
||
isempty
(
bytesize
))
info
=
whos
(
'img1'
);
bytesize
=
info
.
bytes
;
end
image_out
=
{};
for
i
=
1
:
2
if
(
i
==
1
)
useMatlab
=
1
;
else
useMatlab
=
0
;
end
results
(
i
)
.
process
=
'MinFilterEllipsoid'
;
if
(
useMatlab
==
1
)
results
(
i
)
.
Cuda_or_Matlab
=
'MATLAB'
;
else
results
(
i
)
.
Cuda_or_Matlab
=
'CUDA'
;
end
t1
=
tic
;
image_out
{
i
}
=
MinFilterEllipsoid
(
img1
,
radius
,
1
,
useMatlab
);
elapsedtime
=
toc
(
t1
);
img_size
=
size
(
img1
);
results
(
i
)
.
ImageSize
=
img_size
;
results
(
i
)
.
timer
=
elapsedtime
;
end
% Difference to check if addition by both methods result in same image
diffimage
=
image_out
{
2
}
-
image_out
{
1
};
if
(
sum
(
diffimage
(:))
==
0
)
accuracy
=
100
;
else
accuracy
=
0
;
end
results
(
1
)
.
accuracy
=
accuracy
;
results
(
2
)
.
accuracy
=
accuracy
;
results
(
1
)
.
ByteSize
=
bytesize
;
results
(
2
)
.
ByteSize
=
bytesize
;
end
\ No newline at end of file
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