It looks like a band of about 15 pixels has been added to the original raster, filled with random values (in my case varying from 0 to 4). Workspace to produce this result is CompareRaster.fmw. As indicated by John, this might be due to the fuzziness of the jp2 compression. However, there is a jp2 compression that is not fuzzy, well, not lossy or reversible using a CDF 5/3 wavelet transform (whatever that means). In FME it is implemented by setting compressionlevel for the writer to 0 (parameter Compress By Percentage, which by default is set to 75, i.e., lossy compression).
This does not mean the resulting raster is not compressed at all. Still the uncompressed TIFF source file occupied about 10 times as much space as the “uncompressed” jp2 file (however, the 75% compressed result needs about half of that).
So, my guess is that if you specify 0 for the jp2 compression level, it does not suffer from the edge scattering. As can be seen from the picture below (again from FME Universal Viewer).
This analysis was based on this FME Version:
I wish I could send you one of the TIF's, but they are 250Mb each and I have 13,000 of them to let the air out of. I would still like to discover the answer. I thinks its because JPG's are "fuzzy" and the chatter is because of the blurred edge being given a pixel value instead of NoData. I may re-run the JPG's afterward to see if I can reset the pixels with values less than 10 to 0
Meanwhile, Due to time restraints, I simply went from TIF to TIF with 80% compression and they are coming down to a reasonable size.
尝试使用RasterBandNodataSetter从-9999到0,并设置Replace = Yes。这时就不需要RasterCellValueReplacer了。< / p >
After coercing to 16Uint, try the RasterBandNodataSetter to 0 with Replace = No.
If that doesn't work, a small sample JPG would be helpful.