Opened 6 years ago

Closed 6 years ago

Last modified 6 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 Changed 6 years ago by maphew

  • Keywords nearblack added

comment:2 Changed 6 years ago by rouault

  • Milestone set to 1.9.0
  • Resolution set to fixed
  • Status changed from new to closed

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

comment:3 Changed 6 years ago by maphew

thank you!

Note: See TracTickets for help on using tickets.