Skip to content
Snippets Groups Projects
Commit 951e510c authored by sundar's avatar sundar
Browse files

Updated 'bytesize' does not exist condition

parent 8aba7b0f
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,11 @@ function results = Getstats_AddConstant(img,additive,bytesize)
% Collects stats of performance and accuracy for CudaMex and Matlab
% implementations of AddConstant
%
if (~exist('bytesize','var') || isempty(bytesize))
info = whos('img1');
bytesize = info.bytes;
end
for i=1:2
if (i == 1)
useMatlab = 1;
......
......@@ -2,7 +2,10 @@ function results = Getstats_Histogram(img,numBins,bytesize)
% Collects stats of performance and accuracy for CudaMex and Matlab
% implementations of Histogram calculation
%
if (~exist('bytesize','var') || isempty(bytesize))
info = whos('img1');
bytesize = info.bytes;
end
for i=1:2
if (i == 1)
useMatlab = 1;
......
......@@ -2,6 +2,11 @@ function results = Getstats_ImagePow(img,power,bytesize)
% Collects stats of performance and accuracy for CudaMex and Matlab
% implementations of ImagePow
%
if (~exist('bytesize','var') || isempty(bytesize))
info = whos('img1');
bytesize = info.bytes;
end
for i=1:2
if (i == 1)
useMatlab = 1;
......
......@@ -2,6 +2,11 @@ function results = Getstats_MultiplyImage(img,multiplier,bytesize)
% Collects stats of performance and accuracy for CudaMex and Matlab
% implementations of MultiplyImage
%
if (~exist('bytesize','var') || isempty(bytesize))
info = whos('img1');
bytesize = info.bytes;
end
for i=1:2
if (i == 1)
useMatlab = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment