1、I1=imread('iris.tif');
I2=imread('breast.jpg');
figure
imshow(I1)
figure
imshow(I2)
2、
INFO1=imfinfo('iris.tif') INFO1 =
Filename: 'iris.tif'
FileModDate: '28-Jun-2003 23:26:08'
FileSize: 1092380
Format: 'tif'
FormatVersion: []
Width: 600
Height: 600
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: [73 73 42 0]
ByteOrder: 'little-endian'
NewSubfileType: 0
BitsPerSample: [8 8 8]
Compression: 'Uncompressed'
PhotometricInterpretation: 'RGB'
StripOffsets: 12336
SamplesPerPixel: 3
RowsPerStrip: 600
StripByteCounts: 1080000
XResolution: 267
YResolution: 267
ResolutionUnit: 'Inch'
Colormap: []
PlanarConfiguration: 'Chunky'
TileWidth: []
TileLength: []
TileOffsets: []
TileByteCounts: []
Orientation: 1
FillOrder: 1
GrayResponseUnit: 0.0100
MaxSampleValue: [255 255 255]
MinSampleValue: 0
Thresholding: 1
NewSubFileType: 0
Software: 'Adobe Photoshop 7.0'
DateTime: '2002:08:27 01:51:30'
INFO2=imfinfo('breast.jpg')
INFO2=
Filename: 'breast.jpg'
FileModDate: '27-Jul-2001 22:43:50'
FileSize: 101599
Format: 'jpg'
FormatVersion: ''
Width: 482
Height: 571
BitDepth: 8
ColorType: 'grayscale'
FormatSignature: ''
NumberOfSamples: 1
CodingMethod: 'Huffman'
CodingProcess: 'Sequential'
Comment: {}
3、figure
imhist(I2)
对于索引图像,其直方图的显示需要和相关的颜色
表
关于同志近三年现实表现材料材料类招标技术评分表图表与交易pdf视力表打印pdf用图表说话 pdf
对应,需要查询一些资料
4、I2=imread('breast.jpg');
I_new1=imadjust(I2);
I_new2=imadjust(I2,[0.2;0.8],[],0.3);
figure,subplot(231),imshow(I2),title('原图像')
subplot(232),imshow(I_new1),title('灰度调整1%的图像')
subplot(233),imshow(I_new2),title('将灰度级[0.2 0.8]映射到[0 1]的图像')
I_new3=imadjust(I2,[0.2 0.8],[0.3 0.7],0.2);
subplot(234),imshow(I_new3),title('将灰度级[0.2 0.8]映射到[0.3 0.7]的图像,gamma为0.2')
I_new4=imadjust(I2,[0.2 0.5],[],1.25);
subplot(235),imshow(I_new4),title('将灰度级[0.2 0.5]映射到[0 1]的图像,gamma为1.25')
I_new5=imadjust(I2,[0.2 0.5],[0.2 1],0.3);
subplot(236),imshow(I_new5),title('将灰度级[0.2 0.5]映射到[0.2 1]的图像,gamma为0.3')
5、
I_histeq=histeq(I2);
figure
subplot(211),imshow(I_histeq)
subplot(212),imhist(I_histeq)
6、I2=imread('breast.jpg');
I_new1=im2bw(I2,0.15);
figure,subplot(121),imshow(I_new1)
I_new1=im2bw(I2,0.2);
subplot(122),imshow(I_new2)
思考题1、彩色图像的直方图显示
R=I1(:,:,1);
G=I1(:,:,2);
B=I1(:,:,3);
figure
subplot(311),imhist(R)
subplot(312),imhist(G)
subplot(313),imhist(B)
思考题2、imadjust算法的实现
Imadjust(I,[a b],[c d],
)
这个函数的功能是对图像I进行调整,将其灰度范围为[a b]映射到范围为[c d]上,具体的
数学
数学高考答题卡模板高考数学答题卡模板三年级数学混合运算测试卷数学作业设计案例新人教版八年级上数学教学计划
表达式如下 a<=r<=b
思考题3、
使用subplot函数可以在一个窗口中同时显示多幅图像
Subplot(m,n,q)将窗口划分为m*n个子图像区,当前绘图区域为第q个子图像
思考题4
Matlab中矩阵第一行第一列的元素用f(1,1)表示
实验二
� EMBED Equation.3 ���
c 当r
b时
s=
_1398964680.unknown
_1398966177.unknown