This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <sys/types.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> | |
| int main(int argc, char const *argv[]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import numpy as np | |
| from scipy.misc import imread, imresize | |
| import os | |
| import random | |
| from math import exp | |
| #Takes input of the path for image data, the final width and | |
| #height to which the image needs to be resized | |
| #Gives the output as numpy array. Images are converted to Grayscale. |
NewerOlder