Está en la página 1de 4

9/28/2016

UsingImageAnalysisFunctionstoDisplayLayerTintsonHillshades|ArcWatch

[anerroroccurredwhileprocessingthisdirective][anerroroccurredwhileprocessingthisdirective][anerroroccurredwhileprocessingthisdirective]

News
News

Releases

IntheNews

Maps

Publications

Blogs

Podcasts

ArcWatch:GISNews,Views,andInsights
CurrentIssue

PreviousIssues

Subscribe

MediaRelations

June2012

SubmitanArticle

UsingImageAnalysisFunctionstoDisplayLayerTintson
Hillshades
ByRajinderNagi
EsriCartographicResearcher

[anerroroccurredwhileprocessingthisdirective]
Usingtransparencytooverlaycoloredrastersonhillshadeorothergrayscalerastersresultsinawashedout,
lessdetailedimage.Thistipwillshowyouhowtocreateanimagethatinsteadretainstheoriginalcolorsand
detailsbyusingtheNoAlterationofGrayscaleorIntensity(NAGI)fusionmethod.Thismethodisextremely
versatile,soitcanbeusedwhetheryouareworkingwithmosaicdatasetsorimageanalysisfunctionsin
ArcGIS10forDesktopandabove.Italsoworkswithcolorrampsandcolormapfiles.
Thetip"LearnaNewMethodforDisplayingHillshadesandElevationTints,"publishedintheMarchissueof
ArcWatch,explainedhowtousetheNAGIfusionmethodwithmosaicdatasetsandcolormapfiles.Thistip
explainshowtofuseagrayscaleandcoloredrasterusingcolorrampsandfunctionsavailablethroughthe
ImageAnalysiswindow.AmapofWashingtonstateelevationwasselectedtoillustratehowtousetheNAGI
fusionmethod.
Solvingtheproblemdescribedaboveawashedoutimagewithlessdetailofteninvolvestransparently
overlayingahypsometrictintonahillshade.Thisisacommonmethodforsymbolizingterrain.Ahypsometric
tintisoftendisplayedusingacolorrampwithcolorsthatrepresentdifferentelevations(figure1).

Figure1.Ahypsometrictintshowingelevation

Ahillshadeofadigitalelevationmodel(DEM)isoftendisplayedasagrayscaleraster(figure2).

http://www.esri.com/news/arcwatch/0612/usingimageanalysisfunctionstodisplaylayertintsonhillshades.html

1/4

9/28/2016

UsingImageAnalysisFunctionstoDisplayLayerTintsonHillshades|ArcWatch

Figure2.Agrayscalehillshade

Whenthehypsometrictintisdisplayedtransparentlyoverthehillshade,theresultisawashedoutversionof
thehypsometrictintandalessdetailedversionofthehillshade(figure3).

Figure3.Theresultwhenthehypsometrictintisshownwith40percenttransparencyoverthehillshade

TheNAGIfusionmethodproducesabetterresultbecausetheintensityoftheoriginalcolorsandthedetailin
thegrayscalerasterareretained(figure4).

http://www.esri.com/news/arcwatch/0612/usingimageanalysisfunctionstodisplaylayertintsonhillshades.html

2/4

9/28/2016

UsingImageAnalysisFunctionstoDisplayLayerTintsonHillshades|ArcWatch

Figure4.Theresultwhenimagefunctionsareusedtocontrolthedisplay

Atthecoreofthisdisplaymethodisacombinationofpansharpening,contraststretching,andgamma
stretchingfunctions.Thepansharpeningfunctionusesapanchromaticandmultispectral,threebandRGB
(red,green,blue)rasterasinput.Inthistip,theinputsareahillshadecreatedfromaDEMasthe
panchromaticrasterandaDEMwithacolorrampthathasbeenconvertedtoamultispectralraster.The
outputfromthepansharpeningfunctionisthenusedasinputforthecontrastandgammastretchingfunctions.
Step1.SincelayertintedDEMsarenotusuallymanagedasthreebandRGBrasters,aconversionis
required.Todothis,addtheDEMtoArcMap,rightclickthelayerinthetableofcontents,andclickProperties.
OntheSymbologytab,selectthecolorrampyouwanttousetodisplaythedata.ClickOKtoclosetheLayer
Propertiesdialogbox.Rightclickthelayerinthetableofcontents,clickData,andclickExportData.Inthe
ExportRasterDatadialogbox,checkUseRendererandcheckForceRGB.Choosealocationandfilename,
thenclickSave.Choosetoaddtheexporteddatatothemapasalayer.ThethreebandRGBimagewillbe
addedtothetableofcontents.
Atthispoint,youcaneitherusethemethoddescribedintheearliertip
toaddtherastertoamosaicdatasetandrenderit,oryoucanfollow
theinstructionsbelowtousetheImageAnalysistools.
Step2.Next,setupthelayertintandhillshaderasterstousethepan
sharpeningfunction.Addthegrayscalehillshadeandmultispectral
RGBlayertintrasterstoArcMap,iftheyhavenotalreadybeenadded.
Instandardtoolbar,chooseWindows>ImageAnalysis.Inthetop
sectionoftheImageAnalysiswindow,selectboththehillshadeand
RGBrastersusingtheCtrlkeytoclickeachraster'snametohighlightit
(figure5,atright).
Step3.Nowyoucanusethepansharpeningfunction.ClickthePan
SharpeningtoolintheProcessingsectionoftheImageAnalysis
window.Thiswillcreateanewlayer,whichwillbepositionedasthetop
layerintheImageAnalysiswindow.IntheImageAnalysiswindow,
rightclickthenewlygeneratedpansharpeninglayerandclick
Properties.OntheFunctionstab,rightclickPansharpeningFunction
andclickProperties.OntheGeneraltaboftheRasterFunction
Propertiesdialogbox,changetheOutputPixelTypeto8BitUnsigned
thisdatatypeisrequiredsothatyoucanusethepansharpening
functioninthenextstep.
Step4.Modifyoneoftheoptionsinthepansharpeningfunction.On
thePanSharpentab,changetheMethodparametertoSimpleMean.
RetaintherestofthedefaultsandclickOK.
Step5.Next,applyacontraststretchandagammastretch.Rightclick
PansharpeningFunction,clickInsert,andclickStretchFunctionto
applyacontraststretch.ChangetheTypetoMinimumMaximum.
ChecktheUseGammaoption.IntheGammasectionofthedialog
Figure5.TheImageAnalysiswindow
box,checktheUseGammaoptionandchangetheGammavaluefrom
1.0to0.5foreachofthethreebands.IntheStatisticssectionofthe
dialogbox,type"5"astheMinvalueand"215"astheMaxvalueforeachofthethreebands.Thefinal
functionchainwilllooklikefigure6.

http://www.esri.com/news/arcwatch/0612/usingimageanalysisfunctionstodisplaylayertintsonhillshades.html

3/4

9/28/2016

UsingImageAnalysisFunctionstoDisplayLayerTintsonHillshades|ArcWatch

Figure6.Thefinalfunctionchain

ClickOKtocheckyourresults.
Aftercheckingtheresults,feelfreetoexperimentbyresettingthegammafunctionorchangingtheminimum
andmaximumvaluesforintheStretchFunction.
Step6.CreatingthisdisplayusingtheImageAnalysiswindowinsteadofmosaicdatasetswillproducea
temporaryraster.Ifyouwanttokeepyourresults,exportthelayerfromArcMap.Todothis,rightclickthe
layerinthetableofcontentsandclickExportData.
ThedatayousavecannowbeaddedtoanArcMapsession,anditwillbedisplayedwiththefinalresults.
Ifyouwanttotrythisoutyourself,downloadthis.zipfile,whichcontainsamappackageoftheWashington
stateelevationmapusedinthisarticle.
[anerroroccurredwhileprocessingthisdirective][anerroroccurredwhileprocessingthisdirective]

http://www.esri.com/news/arcwatch/0612/usingimageanalysisfunctionstodisplaylayertintsonhillshades.html

4/4

También podría gustarte