I have a series of images with names like "alpha-beta-0", "alpha-beta-1",......."alpha-beta-20". I have to read these images and give output as one image after process them.
How can I do that in OpenCV and C++.
You can use universal cv::VideoCapture class that is able to load regularly named images as a video sequence (see docs).
cv::VideoCapture cap("alpha-beta-%d");
cv::Mat img;
while (cap.read(img)) {
// process image
}