Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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 maphew, 13 years ago

Keywords: nearblack added

comment:2 by Even Rouault, 13 years ago

Milestone: 1.9.0
Resolution: fixed
Status: newclosed

r22558 /trunk/gdal/apps/nearblack.cpp: nearblack: remove useless restrictions on number of bands for -setmask and -setalpha options (#4124)

comment:3 by maphew, 13 years ago

thank you!

Note: See TracTickets for help on using tickets.