AverageChannels_Weighted
Creates a monochromatic image from weighted averages of the input image channels.
Syntax
C++
Python
def AverageChannels_Weighted( inImage: Image, inWeight1: int, inWeight2: int, inWeight3: int, inWeight4: int, outImage: Image, /, *, inRoi: Region | None = None ) -> None
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | Image | Input image | |
![]() |
inRoi | Region | None | None | Range of pixels to be processed |
![]() |
inWeight1 | int | Weight of the first channel | |
![]() |
inWeight2 | int | Weight of the second channel | |
![]() |
inWeight3 | int | Weight of the third channel | |
![]() |
inWeight4 | int | Weight of the fourth channel | |
![]() |
outImage | Image | Output image |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.


