source: trunk/src/transform_field/ima_green.m @ 737

Last change on this file since 737 was 702, checked in by sommeria, 11 years ago

adds fct 'green'

File size: 513 bytes
Line 
1% 'ima_green': take the gree component of a color image
2
3%------------------------------------------------------------------------
4%%%%  Use the general syntax for transform fields with a single input %%%%
5% OUTPUT:
6% DataOut:   output field structure
7
8%INPUT:
9% DataIn:  first input field structure
10%------------------------------------------------------------------------
11function DataOut=ima_green(DataIn)
12
13DataOut=DataIn; %default
14if ndims(DataOut.A)==3
15    DataOut.A=DataOut.A(:,:,2);
16end
17 
Note: See TracBrowser for help on using the repository browser.