SUNY Geneseo Department of Mathematics
Friday, January 23
Math 384
Spring 2015
Prof. Doug Baldwin
>> img = zeros( 512, 512, 3 );
>> image( img )
>> img( 1:10, :, 1 ) = 1;
>> image( img )
>> help axis
…Lots of information about using “axis” command…
>> axis off
>> img( 100:200, 100:200, 1 ) = 0.5;
>> img( 100:200, 100:200, 2 ) = 0.5;
>> image( img )
>> img( 100:200, 100:200, 1 ) = 0.85;
>> img( 100:200, 100:200, 2 ) = 0.85;
>> image( img )
>> img( 100:200, 100:200, 3 ) = 0.5;
>> image( img )
>> img( 100:200, 100:200, 3 ) = img( 100:200, 100:200,3 ) + 0.3;
>> image( img )
>> imwrite( img, 'demo.jpg' )