#includeIn this example, imread() is used to read an image file, split() is used to split its channels, and imshow() is used to display each channel separately. The package library used in this example is OpenCV.using namespace cv; int main() { Mat image = imread("image.jpg"); // Splitting the channels std::vector channels; split(image, channels); // Displaying the channels separately imshow("Blue Channel", channels[0]); imshow("Green Channel", channels[1]); imshow("Red Channel", channels[2]); waitKey(0); return 0; }