private void DecodeSingleImage(int img)
    {
        decoder        = new InfraredImageDecoder();
        decoder.images = assets;
        decoder.PrepareAllIRImagesToVector2IntListList();
        decoder.imageToDecode = img;

        decoder.fileLocation = fileLocation;
        decoder.fileName     = fileName;

        decoder.DecodeImage(saveAsText);
        Debug.Log(decoder.parsedTrackedPositions[0]);
        if (decoder.parsedTrackedPositions != null)
        {
            AddKeyToCurves(decoder.parsedTrackedPositions);
        }
    }
    private void DecodeAllImages()
    {
        decoder        = new InfraredImageDecoder();
        decoder.images = assets;
        decoder.PrepareAllIRImagesToVector2IntListList();
        decoder.fileLocation = fileLocation;
        decoder.fileName     = fileName;

        for (int i = 0; i < assets.Count; i++)
        {
            decoder.imageToDecode = i;
            decoder.DecodeImage(saveAsText);
            if (decoder.parsedTrackedPositions != null)
            {
                AddKeyToCurves(decoder.parsedTrackedPositions);
            }
        }
    }