Ticket #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
Note: See
TracTickets for help on using
tickets.
