fixed cifar10.m
git-svn-id: http://moon:8086/svn/matlab/trunk@98 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
+3
-3
@@ -5,8 +5,8 @@ data = d.data;
|
||||
im = double(data(:,1:1024))/256 + double(data(:,1025:2048))/256 + double(data(:,2049:3072))/256;
|
||||
im = im /3;
|
||||
|
||||
%im2 = reshape(im(2,:), 32,32)
|
||||
%imshow(im2)
|
||||
im2 = reshape(im(2,:), 32,32)
|
||||
imshow(im2)
|
||||
|
||||
[numTrain, numPixel] = size(im)
|
||||
|
||||
@@ -16,7 +16,7 @@ fprintf(fid, '%d\n', numPixel);
|
||||
|
||||
for m=1:numTrain,
|
||||
for n=1:numPixel,
|
||||
fprintf(fid, '%f\n', im(n));
|
||||
fprintf(fid, '%f\n', im(m, n));
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user