filenameOperations.cpp
int filenameOperations::convertFile() {
	
	std::cout << "Reading File..." << std::endl;

	if (extension == "bmp") {
		return cv::COLOR_RGB2GRAY;
	}
	else if (extension == "png") {
		return cv::COLOR_RGB2GRAY;
	}
	else if (extension == "jpg") {
		return cv::COLOR_RGB2GRAY;
	}
	else {
		std::cout << "No file conversions... file not proper type... try again." << std::endl;
		//exit(EXIT_SUCCESS);
	}
}
/*
	Return an enumerated integer that relates to the color conversion
	within opencv. If the file extension is not one of the accepted 
	file types, close the program.
*/
Return an enumerated integer that relates to the color conversion
within opencv. If the file extension is not one of the accepted
file types, close the program.
Return an enumerated integer that relates to the color conversion within opencv . If the file extension is not one of the accepted file types close the program .
int filenameOperations::convertFile() {
	std::cout << "Reading File..." << std::endl;
	if (extension == "bmp") {
		return cv::COLOR_RGB2GRAY;
	}
	else if (extension == "png") {
		return cv::COLOR_RGB2GRAY;
	}
	else if (extension == "jpg") {
		return cv::COLOR_RGB2GRAY;
	}
	else {
		std::cout << "No file conversions... file not proper type... try again." << std::endl;
	}
}
int filenameOperations :: convertFile ( ) { std :: cout << " " << std :: endl ; if ( extension == " " ) { return cv :: COLOR_RGB2GRAY ; } else if ( extension == " " ) { return cv :: COLOR_RGB2GRAY ; } else if ( extension == " " ) { return cv :: COLOR_RGB2GRAY ; } else { std :: cout << " " << std :: endl ; } }
Return an enumerated integer that relates to the color conversion
within opencv.
Return an enumerated integer that relates to the color conversion within opencv .
//exit(EXIT_SUCCESS);
