{"id":67621,"date":"2015-05-12T10:18:11","date_gmt":"2015-05-12T10:18:11","guid":{"rendered":"http:\/\/www.esri.com\/arcgis-blog\/products\/product\/uncategorized\/pass-the-classification-but-hold-the-salt-and-pepper\/"},"modified":"2018-03-26T21:05:24","modified_gmt":"2018-03-26T21:05:24","slug":"pass-the-classification-but-hold-the-salt-and-pepper","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper","title":{"rendered":"Pass the classification but hold the salt and pepper!"},"author":6071,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[22851,22931,22841,22771,22871],"tags":[26401,22901,22821,23011,26411],"industry":[],"product":[],"class_list":["post-67621","blog","type-blog","status-publish","format-standard","hentry","category-national-government","category-imagery","category-local-government","category-natural-resources","category-state-government","tag-classification","tag-national-government","tag-oceans-and-maritime","tag-raster","tag-segmentation"],"acf":{"short_description":"ArcGIS has improved its suite of classification tools including advanced algorithms and the ability to segment an image. Segmentation loo...","flexible_content":[{"acf_fc_layout":"content","content":"<p>ArcGIS has improved its suite of classification tools including advanced algorithms and the ability to segment an image. Segmentation looks at neighboring pixels and groups them together if they share the same spectral characteristics and it can also understand the shape of features and leverage that information to increase the accuracy of your final, classified image. The net result is to eliminate the salt and pepper effect that you sometimes see in classified maps and to produce a clean classified image.<\/p>\n<p>The tool that you use to do this is the Segment Mean Shift tool. Let\u2019s break this down.<\/p>\n<p>You\u2019ve got the Segment Mean Shift tool open and you have these two parameters that you need to set, Spectral Detail and Spatial Detail. Set them both to 20 and click run, then come back and I\u2019ll tell you what you just did.<\/p>\n<p>Segmentation is just an intermediate step. It\u2019s tempting to want to create the perfectly segmented image, but the reality is you just want it to be good enough to get rid of the salt and pepper and have a clean looking final result.<\/p>\n<p>The reason to set both parameters to 20 is that this will be the fastest processing time. If that\u2019s good enough, then move on. The term \u201cgood enough\u201d is an industry term that means \u201cthe absence of stuff that is wrong.\u201d So, not everything has to be right, it just can\u2019t be wrong. That\u2019s the threshold you want. Remember, this is part of a larger workflow which involves creating training sites, classifying the image, seeing where you have errors, and then revising those training sites.<\/p>\n<p>If the quality isn\u2019t up to par and you see segments composed of multiple features (like a forest and a lawn) you want to run the tool again. This time, set the level of Spatial Detail to between 2 and 4. You\u2019ll get sharper segments but the tool will take longer to process because it\u2019s taking into account more information about the shape of features.<\/p>\n<p>Here\u2019s an image that shows where you want to be parameter-wise. The green box in the lower right is the good enough zone. This is the fastest processing time (high spatial and spectral detail). The blue box in the upper right is the high quality zone (high spectral and low spatial detail). You want to stay away from anything below the yellow line.<\/p>\n<p><a href=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2015\/05\/segparameters2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-49378\" src=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2015\/05\/segparameters2.png\" alt=\"segment parameters\" width=\"843\" height=\"635\" \/><\/a><\/p>\n"}],"authors":[{"ID":6071,"user_firstname":"","user_lastname":"","nickname":"kevin_butler","user_nicename":"kevin_butler","display_name":"kevin_butler","user_email":"kevin_butler@esri.com","user_url":"","user_registered":"2018-03-02 00:17:54","user_description":"","user_avatar":"<img alt='' src='https:\/\/secure.gravatar.com\/avatar\/738391810f6c55998ac19e21c20476b5890e070b6c1caee1756760c508339474?s=96&#038;d=blank&#038;r=g' srcset='https:\/\/secure.gravatar.com\/avatar\/738391810f6c55998ac19e21c20476b5890e070b6c1caee1756760c508339474?s=192&#038;d=blank&#038;r=g 2x' class='avatar avatar-96 photo' height='96' width='96' loading='lazy' decoding='async'\/>"}]},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Pass the classification but hold the salt and pepper!<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pass the classification but hold the salt and pepper!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-26T21:05:24+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper\"},\"author\":{\"name\":\"kevin_butler\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/09354c22f25abe7c55fe3364ec95f27d\"},\"headline\":\"Pass the classification but hold the salt and pepper!\",\"datePublished\":\"2015-05-12T10:18:11+00:00\",\"dateModified\":\"2018-03-26T21:05:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper\"},\"wordCount\":9,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"classification\",\"National Government\",\"oceans and maritime\",\"raster\",\"segmentation\"],\"articleSection\":[\"Government\",\"Imagery &amp; Remote Sensing\",\"Local Government\",\"Natural Resources\",\"State and Provincial Government\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper\",\"name\":\"Pass the classification but hold the salt and pepper!\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2015-05-12T10:18:11+00:00\",\"dateModified\":\"2018-03-26T21:05:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pass the classification but hold the salt and pepper!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/09354c22f25abe7c55fe3364ec95f27d\",\"name\":\"kevin_butler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/738391810f6c55998ac19e21c20476b5890e070b6c1caee1756760c508339474?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/738391810f6c55998ac19e21c20476b5890e070b6c1caee1756760c508339474?s=96&d=blank&r=g\",\"caption\":\"kevin_butler\"},\"url\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Pass the classification but hold the salt and pepper!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper","og_locale":"en_US","og_type":"article","og_title":"Pass the classification but hold the salt and pepper!","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2018-03-26T21:05:24+00:00","twitter_card":"summary_large_image","twitter_site":"@ESRI","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper"},"author":{"name":"kevin_butler","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/09354c22f25abe7c55fe3364ec95f27d"},"headline":"Pass the classification but hold the salt and pepper!","datePublished":"2015-05-12T10:18:11+00:00","dateModified":"2018-03-26T21:05:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper"},"wordCount":9,"commentCount":0,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["classification","National Government","oceans and maritime","raster","segmentation"],"articleSection":["Government","Imagery &amp; Remote Sensing","Local Government","Natural Resources","State and Provincial Government"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper","name":"Pass the classification but hold the salt and pepper!","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2015-05-12T10:18:11+00:00","dateModified":"2018-03-26T21:05:24+00:00","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/product\/national-government\/pass-the-classification-but-hold-the-salt-and-pepper#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Pass the classification but hold the salt and pepper!"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/09354c22f25abe7c55fe3364ec95f27d","name":"kevin_butler","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/738391810f6c55998ac19e21c20476b5890e070b6c1caee1756760c508339474?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/738391810f6c55998ac19e21c20476b5890e070b6c1caee1756760c508339474?s=96&d=blank&r=g","caption":"kevin_butler"},"url":""}]}},"text_date":"May 12, 2015","author_name":"kevin_butler","author_page":false,"custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/08\/Newsroom-Keyart-Wide-1920-x-1080.jpg","primary_product":false,"tag_data":[{"term_id":26401,"name":"classification","slug":"classification","term_group":0,"term_taxonomy_id":26401,"taxonomy":"post_tag","description":"","parent":0,"count":10,"filter":"raw"},{"term_id":22901,"name":"National Government","slug":"national-government","term_group":0,"term_taxonomy_id":22901,"taxonomy":"post_tag","description":"","parent":0,"count":255,"filter":"raw"},{"term_id":22821,"name":"oceans and maritime","slug":"oceans-and-maritime","term_group":0,"term_taxonomy_id":22821,"taxonomy":"post_tag","description":"","parent":0,"count":102,"filter":"raw"},{"term_id":23011,"name":"raster","slug":"raster","term_group":0,"term_taxonomy_id":23011,"taxonomy":"post_tag","description":"","parent":0,"count":147,"filter":"raw"},{"term_id":26411,"name":"segmentation","slug":"segmentation","term_group":0,"term_taxonomy_id":26411,"taxonomy":"post_tag","description":"","parent":0,"count":6,"filter":"raw"}],"category_data":[{"term_id":22851,"name":"Government","slug":"national-government","term_group":0,"term_taxonomy_id":22851,"taxonomy":"category","description":"","parent":0,"count":413,"filter":"raw"},{"term_id":22931,"name":"Imagery &amp; Remote Sensing","slug":"imagery","term_group":0,"term_taxonomy_id":22931,"taxonomy":"category","description":"","parent":0,"count":765,"filter":"raw"},{"term_id":22841,"name":"Local Government","slug":"local-government","term_group":0,"term_taxonomy_id":22841,"taxonomy":"category","description":"","parent":0,"count":556,"filter":"raw"},{"term_id":22771,"name":"Natural Resources","slug":"natural-resources","term_group":0,"term_taxonomy_id":22771,"taxonomy":"category","description":"","parent":0,"count":263,"filter":"raw"},{"term_id":22871,"name":"State and Provincial Government","slug":"state-government","term_group":0,"term_taxonomy_id":22871,"taxonomy":"category","description":"","parent":0,"count":333,"filter":"raw"}],"product_data":[],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/67621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/6071"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=67621"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/67621\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=67621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=67621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=67621"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=67621"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=67621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}