<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="jit.rgb2luma" module="jit" category="Jitter Colorspace">
	<digest>
		Converts RGB to monochrome (luminance)
	</digest>
	<description>
		<o>jit.rgb2luma</o> converts a 4-plane char ARGB (alpha, red, green, blue) matrix into a 1-plane char monochrome matrix containing the luminosity of the original matrix using the equation L = (.299 * R value) + (.587 * G value) + (.114 * B value).
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Jitter
		</metadata>
		<metadata name="tag">
			Jitter Colorspace
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="matrix">
			<digest>
				in
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="matrix">
			<digest>
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="matrix">
			<digest>
				out
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="matrix">
			<digest>
				dumpout
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--MOP-->
	<mop matrixinputcount="1" matrixoutputcount="1">
		<matrixoutput name="out" planelink="0" typelink="1" dimlink="1" minplanecount="1" maxplanecount="1" mindimcount="1" maxdimcount="32">
			<types>
				char
			</types>
		</matrixoutput>
	</mop>
	<!--MESSAGES-->
	<jittermethodlist>
		<jittermethod name="bang" />
		<jittermethod name="clear" />
		<jittermethod name="exportattrs" />
		<jittermethod name="exportsummary" />
		<jittermethod name="getattributes" />
		<jittermethod name="getstate" />
		<jittermethod name="jit_matrix" />
		<jittermethod name="importattrs" />
		<jittermethod name="outputmatrix" />
		<jittermethod name="summary" />
	</jittermethodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="ascale" get="1" set="1" type="float" size="1">
			<digest>
				Alpha scaling factor
			</digest>
			<description>
				The alpha scaling factor (default = 0.)
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Alpha Scale" />
			</attributelist>
		</attribute>
		<attribute name="bscale" get="1" set="1" type="float" size="1">
			<digest>
				Blue scaling factor (default = 0.114)
			</digest>
			<description>
				The blue scaling factor (default = 0.114)
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Blue Scale" />
			</attributelist>
		</attribute>
		<attribute name="gscale" get="1" set="1" type="float" size="1">
			<digest>
				Green scaling factor (default = 0.587)
			</digest>
			<description>
				The green scaling factor (default = 0.587)
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Green Scale" />
			</attributelist>
		</attribute>
		<attribute name="rscale" get="1" set="1" type="float" size="1">
			<digest>
				Red scaling factor (default = 0.299)
			</digest>
			<description>
				The red scaling factor (default = 0.299)
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Red Scale" />
			</attributelist>
		</attribute>
	</attributelist>
	<jitterattributelist>
		<jitterattribute name="outputmode" />
		<jitterattribute name="adapt" />
		<jitterattribute name="out_name" />
		<jitterattribute name="type" />
		<jitterattribute name="dim" />
		<jitterattribute name="planecount" />
	</jitterattributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="jit.rgb2luma.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="jit.colorspace" />
		<seealso name="jit.hue" />
		<seealso name="jit.hsl2rgb" />
		<seealso name="jit.rgb2hsl" />
		<seealso name="jit.traffic" />
		<seealso name="jitterchapter29" module="jit" type="tutorial" />
	</seealsolist>
</c74object>
