This project aims to provide hands-on experience with parallel and distributed computing using OpenCL by converting a dataset of colored images of skin lesions into grayscale images. Specifically, it focuses on processing images from "The ISIC 2020 Challenge Dataset" to aid in early skin cancer detection and diagnosis.
Objective
The objective of this project is to convert the ISIC 2020 Challenge Dataset, which consists of dermoscopic images of skin lesions, into grayscale images using OpenCL parallel computing. By converting these images to grayscale, the complexity is reduced, facilitating tasks such as lesion segmentation and aiding in computational efficiency.
The ISIC 2020 Challenge Dataset
The ISIC dataset is a crucial resource for dermatology and medical image analysis, offering a diverse collection of high-quality skin lesion images. It supports the development of diagnostic systems, segmentation algorithms, and deep learning models for automated lesion detection and classification. Converting these images to grayscale simplifies image representation and aids in analysis and processing.
You are provided with a dataset of colored images of skin lesions in JPEG format. The task is to convert these colored images to grayscale images using OpenCL parallel computing.
Additional Notes: My graphics card (Intel(R) UHD Graphics 620)
Additional Notes
1. Change the Paths in the Code
Update the paths for the input and output images in host.c:
// Specify the input and output image paths
const char* inputPath = "";
const char* outputPath = "";
2. Select the desired Platform and Device Id
// Select the Platform Id
err = clGetPlatformIDs(1, &platform_id, NULL);
// Select the Device Id
err |= clGetDeviceIDs(platform_id, CL_DEVICE_TYPE_GPU, 1, &device_id, NULL);
3. Experiment with the local size
// Select the local group size according to your gpu hardware.
// Max work group size 256 => (Intel(R) UHD Graphics 620)
localSize[0] = 16;
localSize[1] = 16;