Hello guys I am stuck at pset-5 resize.c problem. Here is what i have done:
1) For updating header, in width and height, ave multiplied them by n and for Image size, subtracted the padding of input image, added the padding of output image and then multiplied by n.
2) For horizontal scale,in fread() function i made number of input to n.
3) Fr vertical scale, i replicated the horizontal scaling loop n times.
Can anyone please advice me or help me here. Thank you.