Ask Your Question

Revision history [back]

The simplest way, that comes to my mind is to save the information into vector like structure, and that structure is saved/readied from file.

For example: 1. Get the size of the image (H and W)

  1. First 2 elements of the vector are the height and width.

  2. After that ,in two nested loops , get every pixel value and put it into the vector

  3. Finally, save the vector value by value, for example in csv file

Because we have the resolution of the image, we can reproduce the input image, without a 1 pixel error.

The simplest way, that comes to my mind is to save the information into vector like structure, and that structure is saved/readied from file.

For example: 1. Get the size of the image (H and W)

  1. First 2 elements of the vector are the height and width.

  2. After that ,in two nested loops , get every pixel value and put it into the vector

  3. Finally, save the vector value by value, for example in csv file

Because we have the resolution of the image, we can reproduce the input image, without a 1 pixel error.

The simplest way, that comes to my mind is to save the information into vector like structure, and that structure is saved/readied from file.

For example: 1. Get the size of the image (H and W)

  1. First 2 elements of the vector are the height and width.

  2. After that ,in two nested loops , get every pixel value and put it into the vector

  3. Finally, save the vector value by value, for example in csv file

Because we have the resolution of the image, we can reproduce the input image, without a pixel error. any difference.

The simplest way, that comes to my mind is to save the information into vector like structure, and that structure is saved/readied from file.

For example: 1. example:

  1. Get the size of the image (H and W)

    1. First 2 elements of the vector are the height and width.

    2. After that ,in two nested loops , get every pixel value and put it into the vector

    3. Finally, save the vector value by value, for example in csv file

    Because we have the resolution of the image, we can reproduce the input image, without any difference.