-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimageSizeFunction.m
More file actions
28 lines (28 loc) · 1.1 KB
/
Copy pathimageSizeFunction.m
File metadata and controls
28 lines (28 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
function results = myimfcn(im)
%Image Processing Function
%
% VARARGIN - Can contain up to two inputs:
% IM - First input is a numeric array containing the image data.
% INFO - Second input is a scalar structure containing information about
% the input image source.
%
% INFO can be used to obtain metadata about the image read.
% To apply a batch function using the INFO argument, you must select the
% Include Image Info check box in the app toolstrip.
%
% RESULTS - A scalar struct with the processing results.
%
%
%
%--------------------------------------------------------------------------
% Auto-generated by imageBatchProcessor App.
%
% When used by the App, this function will be called for each input image
% file automatically.
%
%--------------------------------------------------------------------------
% Input parsing------------------------------------------------------------
% Replace the sample below with your code----------------------------------
imgray=rgb2gray(im)
results=imresize(imgray,[227,227]);
%--------------------------------------------------------------------------