Raster Classification Lab

Raster Classification Lab

Classify numeric GeoTIFF bands with value intervals or disjoint labeled samples, then save a real georeferenced result.

1. GeoTIFF source

Maximum 8 MiB, up to 1,024×1,024 and 120,000 total cells. One north-up EPSG:4326/3857 image only.

2. Classification method

Overlapping [min,max) intervals are errors. Null opens an end. Valid values between intervals become unclassified code 0.

Class codes are unique integers 1–254 and colors are #RRGGBB. Code 0 is reserved for output NoData or unclassified cells.

This is exploratory classification of small numeric rasters. The output GeoTIFF holds one class-code band and code-0 NoData; original bands, compression and unrelated metadata are not copied. Original GeoTIFF parser/writer licenses

Comments & questions

Raster Classification Lab

Read numeric bands of a georeferenced raster and assign classes by user-defined value intervals or a nearest-centroid model trained from labeled pixels. Validation pixels are excluded from training, standardization and centroids, then scored in a separate confusion matrix. Uncertainty is only a margin between distances to the two closest centroids—not a calibrated probability or map truth.

Key features

  • Reuse G267 single-image, north-up PixelIsArea EPSG:4326/3857 GeoTIFF validation for up to four numeric bands
  • Nonoverlapping [minimum, maximum) intervals on a selected band with explicit gaps
  • Train-only standardization and class centroids over chosen bands, then nearest-centroid classification
  • Reject duplicate/out-of-range/NoData/insufficient samples and report disjoint holdout confusion, per-class recall and support
  • Propagate selected-band NoData and unmatched threshold cells as output code 0, counted separately
  • Download one-band 8-bit georeferenced GeoTIFF, transparent-NoData PNG and analysis CSV

How to use

  1. Open a local GeoTIFF or the three-band example. Check its CRS, bands, NoData and extent.
  2. For threshold mode, enter one band index and JSON with class code, name, color and min/max. Null means an open end; min is included and max excluded.
  3. For supervised mode, choose comma-separated band indexes and separate training/validation arrays of uniquely labeled zero-based pixel (x,y) coordinates.
  4. Classify and inspect the legend, NoData, low-distance margins, holdout confusion and per-class support.
  5. Save the georeferenced class-code GeoTIFF, color PNG or class/holdout CSV locally.

Use cases

  • Split a numeric elevation or index band into chosen intervals
  • Draft classes of a small satellite raster from labeled pixels
  • Inspect class-specific errors on disjoint holdout samples
  • Create a legend-colored PNG that preserves NoData locations

Frequently asked questions

Can validation samples leak into training?

No. Any duplicate coordinate within or across training and validation is rejected. Band means, standard deviations and class centroids use training only. Validation pixels evaluate the fixed model and are never used for fitting.

Is a low margin a probability?

No. It is the difference between the standardized Euclidean distances to the second and first nearest centroids. Cells below 0.5 are darkened. This is neither calibrated probability nor a statistical confidence interval.

How are NoData and unmatched values handled?

Any missing/nonfinite selected band yields class code 0. A valid value in a threshold gap also gets code 0 but is counted separately as unclassified. A valid numeric zero remains valid unless the source explicitly tags it as NoData.

Which GeoTIFF and georeferencing are preserved?

One north-up PixelIsArea EPSG:4326 or 3857 image is accepted. Output is an uncompressed one-band 8-bit GeoTIFF with the same dimensions, bounds, pixel scale and EPSG tag. Original multibands, compression and unrelated TIFF/GDAL metadata are not copied.

Does 100% holdout accuracy prove map accuracy?

No. Users select a small set of pixels, and spatial autocorrelation or labeling errors may remain. This score describes only those supplied holdout pixels, not independent ground truth or a calibrated probability.

Are files uploaded?

No. TIFF and pixel labels stay in memory in this browser tab. Downloads are generated only on request; there are no uploads or external map tiles.

Privacy

GeoTIFF files and labeled pixels are processed in this browser tab. There are no uploads, external map tiles or automatic storage.

References

Related Tools

Raster Reprojection LabCoordinate Reference LabImage FiltersWasm Module InspectorHreflang Matrix CheckerAST Query PlaygroundContainer Build GraphDependency Graph ExplorerSemver Range LabCron Schedule AuditorPatch Review WorkbenchSource Map ExplorerLocalization Catalog AuditorStructured Data ReviewerHTTP Archive AnalyzerWebhook Signature LabProtobuf Schema WorkbenchGraphQL Schema LabAvro Schema EvolutionLocal SQL WorkbenchSchema Form BuilderMesh Repair WorkbenchPipe Network LabRobot Arm Kinematics LabThermal Network LabBeam Response LabGear Train DesignerTolerance Stackup LabSensor Calibration FitPCB Stackup PlannerDigital Filter DesignerNetwork Reachability MapSun Shadow MapGPS Error SimulatorDigital Logic SimulatorAnalog Circuit LabMechanism Linkage LabAnalysis Mesh GeneratorOpenAPI Contract InspectorDatabase Migration PlannerDimensional Equation CheckerTruss Force LabBoolean Minimization LabControl Response LabQueueing Simulation LabGeofence Event SimulatorSurvey Traverse LabChoropleth Design LabMap Print ComposerElevation Contour MakerTerrain Viewshed LabWatershed DelineatorMap Tile PackagerText File Encoding WorkbenchFilesystem Portability AuditorSBOM License ExplorerFile Signature Auditornpm Lockfile Conflict ResolverSource Secret AuditorOffline Web Package BuilderCertificate Chain InspectorTorrent Metainfo InspectorChunked File PackagerEncrypted File VaultDuplicate File FinderArchive WorkbenchDesign Token ManagerSpacing Token DesignerResponsive Type SystemPackaging Dieline DesignerSVG Icon Sprite PackerFlex Layout PlaygroundCSS Grid PlaygroundRegex Equivalence LabMarkdown Repository AuditorLog Template MinerResponsive Layout AuditorEmail Template PreviewInternal Link GraphState Machine TesterPetri Net SimulatorGit History VisualizerCurl Request WorkbenchBinary Protocol DesignerHex File EditorBinary Patch WorkbenchFile Signature WorkbenchAPI Mock SandboxSchema Column MapperEvent Log SessionizerER Diagram DesignerTime Series Gap AuditorStratified Data SplitterData Lineage DesignerDecision Tree LabData Anonymization WorkbenchData Expectation RunnerJSON Schema ValidatorBasket Pattern AnalyzerRobots Policy TesterSEO HTML AuditorAccessibility Structure AuditorSyndication Feed WorkbenchIndexNow Payload BuilderCrawl Log AnalyzerCSP Policy WorkbenchSearch Performance AnalyzerCSV Formula Risk AuditorCORS Response SimulatorCache Header LabCookie Policy InspectorWeb Vitals Trace LabSitemap Health AuditorBatch File RenamerFile Manifest VerifierFolder Space MapFolder Difference ReviewerRoute Order OptimizerGeoJSON Map EditorPolygon Overlay LabCartographic Label PlacerSpatial Table JoinGeoJSON Topology AuditorGPX Track AnalyzerTrack Privacy RedactorCSV Table JoinCSV Pivot WorkbenchScientific Data ProfilerTabular Cleaning WorkbenchRecord ReconciliationData Dictionary BuilderCanonical Graph AuditorRedirect Plan TesterHTTP response and ping reference testBrowser and System InformationJSON ↔ YAML ConverterXML ↔ JSON ConverterHTML FormatterJavaScript MinifierMock Data Generator.gitignore GeneratorLicense GeneratorUser-Agent ParserPassword Strength CheckerCode to ImageXML FormatterHTTP Status Code LookupMIME Type LookupJS & SQL String EscapeCSS Box Shadow GeneratorCSS Gradient GeneratorIndent ConverterNumber Base ConverterUnicode Escape ConverterUnicode InspectorJSON Structure DiffMarkdown Table GeneratorBase64 EncoderJSON FormatterURL EncoderSQL FormatterCron Expression GeneratorRegex TesterUUID GeneratorHash GeneratorTimestamp ConverterJWT DecoderHTML Entity ConverterMarkdown PreviewCSS MinifierMeta Tag GeneratorJSON ↔ CSVCase ConverterImage to Base64
Explore all Dev Tools tools →Image/Media →Text/Convert →Life/Fun →