GetImageColumn


Extracts an array of pixel values from a single column of an image.

Syntax

C++
Python
 
def GetImageColumn(
	inImage: Image,
	inColumnIndex: int,
	/,
	*,
	inChannelIndex: int | None = None
)
-> (
	outValues: list[float],
	outPixels: list[Pixel]
)

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inChannelIndex int | None 0 - 3 None Selects a channel of the input image
Input value inColumnIndex int 0 - 65535 Selects a column of the input image
Output value outValues list[float] Output pixel values of the column
Output value outPixels list[Pixel] Output pixels of the column