GetImageRow


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

Syntax

C++
Python
 
def GetImageRow(
	inImage: Image,
	inRowIndex: 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 inRowIndex int 0 - 65535 Selects a row of the input image
Output value outValues list[float] Output pixel values of the row
Output value outPixels list[Pixel] Output pixels of the row