Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Image-RGB-to-Gray/dataset_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Image-RGB-to-Gray/imageRGBtoGray.cu
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <bits/stdc++.h>
coe #include <bits/stdc++.h>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'coe' ?

#include "wb.h"
using namespace std;

Expand Down