diff --git a/Image-RGB-to-Gray/dataset_generator.cpp b/Image-RGB-to-Gray/dataset_generator.cpp index 3b5aae5..2e55b48 100644 --- a/Image-RGB-to-Gray/dataset_generator.cpp +++ b/Image-RGB-to-Gray/dataset_generator.cpp @@ -11,7 +11,7 @@ static void compute(unsigned char *output, unsigned char *input, unsigned int idx = ii * x + jj; float r = input[3 * idx]; // red value for pixel float g = input[3 * idx + 1]; // green value for pixel - float b = input[3 * idx + 2]; + float b = input[3 * idx + 2]; // blue value for pixel output[idx] = (unsigned char)(0.21f * r + 0.71f * g + 0.07f * b); } } diff --git a/Image-RGB-to-Gray/imageRGBtoGray.cu b/Image-RGB-to-Gray/imageRGBtoGray.cu index e2047cf..d7ec473 100644 --- a/Image-RGB-to-Gray/imageRGBtoGray.cu +++ b/Image-RGB-to-Gray/imageRGBtoGray.cu @@ -1,4 +1,4 @@ -#include +coe #include #include "wb.h" using namespace std;