GridCoverageRenderer BandMergeNode performes merged by repeated 2 by 2 merges, instead of calling a single merge operation

Description

To merge 4 bands it does 3 "2 by 2" merge operations instead of a single call to merge (this always happens when there is contrast stretching, as the bands have to be stretched and then merged back).
Tried to fix it quickly using the ImageWorker addBands operation, using a N way band merge operation, but could not get it to work....

Environment

None

Assignee

Unassigned

Reporter

Andrea Aime

Triage

Components

Priority

Medium
Configure