📄 matlab central file exchange - contrast stretch and normalization.mht
字号:
</TD>
<TD class=3Dheadercell align=3Dright=20
width=3D"30%"> </TD></TR>
<TR>
<TD colSpan=3D2><IMG height=3D5=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/blue_band_536x5.gif"=
=20
=
width=3D536></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR=
></TBODY></TABLE>
<FORM style=3D"MARGIN-TOP: 0px" name=3DdnlForm=20
action=3D/matlabcentral/fileexchange/download.do =
method=3Dpost><INPUT=20
type=3Dhidden value=3Df0a7eeb3caa3d689c24fbca208f2242a=20
name=3Dorg.apache.struts.taglib.html.TOKEN>=20
<TABLE class=3Dfiletable cellSpacing=3D0 cellPadding=3D0 =
width=3D536 border=3D0>
<TBODY>
<TR>
<TD vAlign=3Dtop width=3D10> </TD>
<TD colSpan=3D3><IMG height=3D11 alt=3D""=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/question.gif"=20
width=3D11 border=3D0> <A class=3Dsmall=20
=
onclick=3D"window.open(this.href,'small','toolbar=3Dno,resizable=3Dyes,st=
atus=3Dyes,menu=3Dno,scrollbars=3Dyes,width=3D536,height=3D250');return =
false;"=20
=
href=3D"http://www.mathworks.com/matlabcentral/fileexchange/file_collabor=
ation.jsp">I=20
am interested in collaboration.</A></TD></TR>
<TR>
<TD vAlign=3Dtop width=3D10> </TD>
<TD>
<DIV style=3D"PADDING-RIGHT: 10px"><B>Download =
Now:</B></DIV></TD>
<TD><INPUT class=3Dsmall type=3Dsubmit value=3D" .m " =
name=3DSubmit></TD></TR>
<TR>
<TD vAlign=3Dtop width=3D10> </TD>
<TD vAlign=3Dtop><B>Rating:</B> N/A </TD>
<TD></TD></TR>
<TR>
<TD vAlign=3Dtop width=3D10> </TD>
<TD vAlign=3Dtop><B>Code Metrics:</B></TD>
<TD>
<TABLE cellSpacing=3D0 cellPadding=3D0>
<TBODY>
<TR>
<TD width=3D75>
<TABLE cellSpacing=3D1 cellPadding=3D0 border=3D0>
<TBODY>
<TR>
<TD><IMG=20
title=3D"Complexity (64th percentile, raw score: =
4)"=20
height=3D10=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/60th.png"=20
width=3D11 border=3D0></TD>
<TD><IMG=20
title=3D"M-Lint (100th percentile, raw score: =
0.0)"=20
height=3D10=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/90th.png"=20
width=3D11 border=3D0></TD>
<TD><IMG title=3D"Help (56th percentile, raw =
score: 1.0)"=20
height=3D10=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/50th.png"=20
width=3D11 border=3D0></TD>
<TD><IMG title=3D"Clash (100th percentile, raw =
score: 0)"=20
height=3D10=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/90th.png"=20
width=3D11 border=3D0></TD>
<TD><IMG title=3D"Cloned (100th percentile, raw =
score: 0)"=20
height=3D10=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/90th.png"=20
width=3D11 =
border=3D0></TD></TR></TBODY></TABLE></TD>
<TD>
<DIV style=3D"DISPLAY: inline; MARGIN-LEFT: 10px"><A =
class=3Dsmall=20
=
href=3D"http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?o=
bjectId=3D11429&objectType=3DscoreDetails">Full=20
report</A> </DIV><BR></TD></TR>
<TR>
<TD colSpan=3D2><IMG height=3D11 alt=3D""=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/question.gif"=20
width=3D9 border=3D0> <A class=3Dsmall=20
=
onclick=3D"window.open(this.href,'small','toolbar=3Dno,resizable=3Dyes,st=
atus=3Dyes,menu=3Dno,scrollbars=3Dyes,width=3D571,height=3D450');return =
false;"=20
=
href=3D"http://www.mathworks.com/matlabcentral/fileexchange/codeMetricsPo=
pup.jsp">What=20
is this?</A> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=3Dtop width=3D10> </TD>
<TD vAlign=3Dtop width=3D89><B>Author:</B></TD>
<TD colSpan=3D2><A=20
=
href=3D"http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do=
?objectType=3Dauthor&objectId=3D1093669">Sergei Koptenko</A></TD=
></TR>
<TR>
<TD vAlign=3Dtop width=3D10 height=3D15> </TD>
<TD vAlign=3Dtop width=3D89 height=3D15><B>Summary:</B></TD>
<TD colSpan=3D2 height=3D15>Stretches contrast on the image =
and=20
normalize image from 0 to 1</TD></TR>
<TR>
<TD vAlign=3Dtop width=3D10 height=3D15> </TD>
<TD vAlign=3Dtop width=3D125 height=3D15><B>MATLAB =
Release:</B></TD>
<TD vAlign=3Dbottom colSpan=3D2 height=3D15>R2006a</TD></TR>
<TR>
<TD vAlign=3Dtop width=3D10> </TD>
<TD vAlign=3Dtop width=3D135><B>Description:</B></TD>
<TD class=3Dlnwrp width=3D456>Stretches contrast on the image =
and=20
normalize image from 0 to 1. The main difference of this =
function to=20
the standard stretching functions is that standard function =
finds=20
global minimum and maximum on the image, then uses some low =
and high=20
threshold values to normalize image (values below LowTHR are =
equated=20
to LowTHR and values above HighTHR are equated to HighTHR). =
This=20
function uses threshold values that are NEXT to miminum and =
maximum.=20
Thus, we can exclude image background (which is normally =
zero) and=20
find minimum value on the image itself. Same consideration =
goes to=20
high thr. We exclude first global maximum because, if its a =
spike,=20
we have better chance with the next value, and if it is not =
a spike,=20
normally, next value is quite close to max (assuming smooth =
image),=20
so our error is small. If image is uniform, (all pixels have =
the=20
same value), for instance zero, function returns the input =
array=20
<BR></TD></TR>
<TR>
<TD vAlign=3Dtop width=3D10> </TD>
<TD vAlign=3Dtop colSpan=3D3> =
</TD></TR></TBODY></TABLE><INPUT=20
type=3Dhidden value=3D11429 name=3DfileId> <INPUT type=3Dhidden=20
value=3DContrastStretchNorm name=3DfileName> <INPUT type=3Dhidden =
value=3D.m=20
name=3DfileExt> <INPUT type=3Dhidden value=3D1093669 =
name=3DcontributorId>=20
</FORM><BR>
<TABLE style=3D"BACKGROUND-COLOR: #ffffff" cellSpacing=3D0 =
cellPadding=3D0=20
width=3D536 border=3D0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D514 =
border=3D0>
<TBODY>
<TR>
<TD width=3D286><B class=3Dfeh4blk>File Details</B></TD>
<TD width=3D228> </TD></TR>
<TR>
<TD colSpan=3D2><IMG height=3D5 alt=3D""=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/blue_band_536x5.gif"=
=20
=
width=3D536></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D536 border=3D0>
<TBODY>
<TR bgColor=3D#f4f4f4>
<TD vAlign=3Dtop colSpan=3D5> </TD></TR>
<TR bgColor=3D#f4f4f4>
<TD vAlign=3Dtop width=3D"1%"> </TD>
<TD vAlign=3Dtop width=3D"25%"><B>File Id:</B></TD>
<TD width=3D"20%">11429</TD>
<TD vAlign=3Dtop width=3D"25%"><B>Average rating:</B></TD>
<TD width=3D"29%">0.0</TD></TR>
<TR bgColor=3D#f4f4f4>
<TD vAlign=3Dtop> </TD>
<TD vAlign=3Dtop><B>Size:</B></TD>
<TD>2 KB</TD>
<TD vAlign=3Dtop><B># of reviews:</B></TD>
<TD>0</TD></TR>
<TR bgColor=3D#f4f4f4>
<TD vAlign=3Dtop> </TD>
<TD vAlign=3Dtop><B>Submitted:</B></TD>
<TD>2006-06-15</TD>
<TD vAlign=3Dtop><B>Downloads:</B></TD>
<TD>1113</TD></TR>
<TR bgColor=3D#f4f4f4>
<TD vAlign=3Dtop> </TD>
<TD vAlign=3Dtop><B>Subscribers:</B></TD>
<TD>0</TD>
<TD colSpan=3D2> </TD></TR>
<TR bgColor=3D#f4f4f4>
<TD> </TD>
<TD vAlign=3Dtop><B>Keywords:</B></TD>
<TD vAlign=3Dtop colSpan=3D3>image contrast stretch =
normalization</TD></TR>
<TR bgColor=3D#f4f4f4>
<TD vAlign=3Dtop width=3D10> </TD>
<TD vAlign=3Dtop =
colSpan=3D4> </TD></TR></TBODY></TABLE><BR><!--Acknowledgements =
--><!--Acknowledgements --><BR>
<TABLE style=3D"BACKGROUND-COLOR: #ffffff" cellSpacing=3D0 =
cellPadding=3D0=20
width=3D536 border=3D0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D514 =
border=3D0>
<TBODY>
<TR>
<TD width=3D286><B class=3Dfeh4blk>User Reviews</B></TD>
<TD width=3D228>
<DIV class=3Dsmall align=3Dright>Number of Reviews: =
0</DIV></TD></TR>
<TR>
<TD colSpan=3D2><IMG height=3D5 alt=3D""=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/blue_band_536x5.gif"=
=20
=
width=3D536></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><B>Be =
the=20
first to rate this file!</B>=20
<FORM name=3DrForm =
action=3D/matlabcentral/fileexchange/saveRating.do=20
method=3Dpost><INPUT type=3Dhidden =
value=3Df0a7eeb3caa3d689c24fbca208f2242a=20
name=3Dorg.apache.struts.taglib.html.TOKEN> <INPUT type=3Dhidden =
value=3Dfile=20
name=3DobjectType> <INPUT type=3Dhidden value=3D11429 =
name=3DobjectId> <BR>
<TABLE style=3D"BACKGROUND-COLOR: #ffffff" cellSpacing=3D0 =
cellPadding=3D0=20
width=3D536 border=3D0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D514 =
border=3D0>
<TBODY>
<TR>
<TD width=3D286><B class=3Dfeh4blk><A=20
name=3Dreview_submission>Review this =
Submission</A></B></TD>
<TD width=3D240>
<DIV align=3Dright><IMG height=3D11 alt=3D""=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/doc.gif"=20
width=3D9 border=3D0> <A=20
=
onclick=3D"window.open(this.href,'small','toolbar=3Dno,resizable=3Dyes,st=
atus=3Dyes,menu=3Dno,scrollbars=3Dyes,width=3D536,height=3D320');return =
false;"=20
=
href=3D"http://www.mathworks.com/matlabcentral/fileexchange/ratingGuideli=
nes.jsp">Guidelines=20
for Reviewing a Submission</A></DIV></TD></TR>
<TR>
<TD colSpan=3D2><IMG height=3D5 alt=3D""=20
=
src=3D"http://www.mathworks.com/matlabcentral/images/blue_band_536x5.gif"=
=20
=
width=3D536></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=3D2 cellPadding=3D2 width=3D536 =
bgColor=3D#dcdfe4 border=3D0>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -