Re: [gdal-dev] Automatically creating an Alpha mask for a RGB raster to extract the backgound? (magic wand style)

2019-01-29 Thread Even Rouault
On mardi 29 janvier 2019 15:49:40 CET Idan Miara wrote: > Hi Even, > > Thanks! it does solve most of the problem! > > The only issue that I think is left is that nearblack scans from the > borders till it reaches a valid data point and stops there. > So in case of diagonal zigzag cutting (or back

Re: [gdal-dev] Automatically creating an Alpha mask for a RGB raster to extract the backgound? (magic wand style)

2019-01-29 Thread Idan Miara
Hi Even, Thanks! it does solve most of the problem! The only issue that I think is left is that nearblack scans from the borders till it reaches a valid data point and stops there. So in case of diagonal zigzag cutting (or background in holes) there will be still background left inside the zigzag

Re: [gdal-dev] Automatically creating an Alpha mask for a RGB raster to extract the backgound? (magic wand style)

2019-01-29 Thread Even Rouault
> I'm looking for an automated/semi-automated way to remove the plain color > background of some (jpeg compressed) Orthophoto RGB rasters without > NoDataValue or an Alpha band. https://www.gdal.org/nearblack.html ? -- Spatialys - Geospatial professional services http://www.spatialys.com ___

[gdal-dev] gdalos - a simple gdal translate/warp/addo python wrapper for raster batch processing

2019-01-29 Thread Idan Miara
Hi, I would like to share with you the python tool that I developed for batch translating/warping/adding overviews. It uses the gdal python interface and on top of it many rules to automate the batch processing. I hope some of you might find it useful. https://github.com/talos-gis/gdalos Kind re

[gdal-dev] Automatically creating an Alpha mask for a RGB raster to extract the backgound? (magic wand style)

2019-01-29 Thread Idan Miara
Hi, I'm looking for an automated/semi-automated way to remove the plain color background of some (jpeg compressed) Orthophoto RGB rasters without NoDataValue or an Alpha band. Usually I get an image of some specific region with the background as a plain color (usually it's plain white or plain bl

Re: [gdal-dev] Perforce issue in coordinate transformations with Gdal 2.3.2

2019-01-29 Thread Thomas Knudsen
Prepare/finalize functions were added to pj_inv & pj_fwd in PROJ PR #731 ( https://github.com/OSGeo/proj.4/pull/731), in order to resolve ticket #700 ( https://github.com/OSGeo/proj.4/issues/700). These add some overhead as well but IIRC, more like +15% (much depending on the actual projection) th