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.

  • it sounds like you are on the right path but it's hard to see where you might be going wrong without posting some code snippets or pseudocode – lethaljd Nov 17 '14 at 18:52
  • Search for tags pset5 or resize. There are lots of good posts here about this pset, including a particularly good answer or two from Kareem. – lethaljd Nov 21 '14 at 0:40

You must log in to answer this question.

Browse other questions tagged .