pyts icon indicating copy to clipboard operation
pyts copied to clipboard

Range of values for images

Open zneha opened this issue 4 years ago • 1 comments

Just wondering, are the image pixels values in range [0 255] for all image encodings (Gaf, Mtf, RecPlot)?

zneha avatar Mar 18 '20 20:03 zneha

Hi,

The pixel values are not in range [0, 255] because they are not standard images.

Gramian Angular Field

The values of a GAF image are in range [-1, 1] (see their formulas):

Capture d’écran 2020-03-19 à 10 08 36

Markov Transition Field

The values of a MTF image are in range [0, 1] as each entry represents a probability:

Capture d’écran 2020-03-19 à 10 08 53

Recurrence Plot

The values of a RP image are (depending on the value of the threshold parameter):

  • non-negative floats because they represent the Euclidean distance between two trajectories;
  • 0 or 1 when the Euclidean distance is binarized (lower or higher than the threshold).

Let me know if it is clear enough or not.

johannfaouzi avatar Mar 19 '20 09:03 johannfaouzi