Tutorial for Color sampling component

Hello , I am working on filters which require colour sampling.Could anyone please provide link/tutorial or any resources available on how to use colour sampling component?
Thank you!