#4124 closed enhancement (fixed)
allow nearblack mask on single band images
Reported by: | maphew | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.9.0 |
Component: | Utilities | Version: | 1.8.0 |
Severity: | normal | Keywords: | nearblack |
Cc: |
Description
When nearblack is used on a single band image with -setmask
it stops with an error:
nearblack -setmask -of gtiff -o decollared.tif gray.tif ERROR 1: Number of bands of file = 1. Expected 3 or 4.
Without setmask it works fine. It would be nice to be able to use masks on grayscale images without incurring the overhead of converting to RGB.
Change History (3)
comment:1 by , 13 years ago
Keywords: | nearblack added |
---|
comment:2 by , 13 years ago
Milestone: | → 1.9.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
r22558 /trunk/gdal/apps/nearblack.cpp: nearblack: remove useless restrictions on number of bands for -setmask and -setalpha options (#4124)