geosolutions-it / jai-ext

Java Advanced Imaging Open Source Replacement Wannabe
Apache License 2.0
90 stars 38 forks source link

Add NODATA support to changematrix operator #89

Open Damianofds opened 9 years ago

Damianofds commented 9 years ago

In order to port the changematrix operator in the master branch a NODATA support must be introduced.

Objectives

Actions

Example

Reference Image has a NODATA range: all values <= 0 Actual Image has a NODATA range: value = 0 OutputImage has type Short

Reference[i] = -3; Actual[i] = 6 Result: OutputImage[i] = NODATA; changematrix.registerPair(-32768,6) //-32768 = Short.MIN_VALUE

Damianofds commented 9 years ago

Clarification The NoData range must be the same for both reference and actual images. Since we want to compute the changes between the two images that are produced with the same process (but, f.e. they repèresent the same area in 2 different time) 2 different NODATA doesn't make sense.