mI-PIV / app

Mobile Instructional Particle Image Velocimetry (mI-PIV) is an educational Android application that teaches users about fluid mechanics through real-time experiments and curricular modules.
MIT License
8 stars 4 forks source link

Processing Indices #403

Closed jack-elliott closed 1 year ago

jack-elliott commented 1 year ago

Selecting +1 default doesn't give new image, likely the same image twice (preview shows the same image).

jack-elliott commented 1 year ago

This changes according to which image is selected as the first frame

kp-121 commented 1 year ago

Just the +1 & +3 selections

kp-121 commented 1 year ago

@jack-elliott I'm not able to replicate this issue as well.

https://user-images.githubusercontent.com/20914336/189770082-d725a7b4-6715-414c-8115-0d70225c2355.mp4

kp-121 commented 1 year ago

Disregard the last comment. That video actually showed us what is wrong. When the user selects the first frame ('1') it should be the '0' frame not the '1' frame.

jack-elliott commented 1 year ago

Here's an example of (potentially) the result of this, where every other image pair result is all zeros

https://user-images.githubusercontent.com/77805273/189815708-365aa542-e351-4053-9583-c73cb2c41958.mp4 I'll email the vid if this upload isn't working

kp-121 commented 1 year ago

Is this happening with all videos or just one? I'm thinking this is a bad frame set. Below are the log outputs of a couple of whole set processing with the frame filenames.

Sample Rate +1 Log D/SET_PIV: Frame1: frame0001.jpg Frame2: frame0002.jpg D/SET_PIV: Frame1: frame0002.jpg Frame2: frame0003.jpg D/SET_PIV: Frame1: frame0003.jpg Frame2: frame0004.jpg D/SET_PIV: Frame1: frame0004.jpg Frame2: frame0005.jpg D/SET_PIV: Frame1: frame0005.jpg Frame2: frame0006.jpg D/SET_PIV: Frame1: frame0006.jpg Frame2: frame0007.jpg D/SET_PIV: Frame1: frame0007.jpg Frame2: frame0008.jpg D/SET_PIV: Frame1: frame0008.jpg Frame2: frame0009.jpg D/SET_PIV: Frame1: frame0009.jpg Frame2: frame0010.jpg D/SET_PIV: Frame1: frame0010.jpg Frame2: frame0011.jpg D/SET_PIV: Frame1: frame0011.jpg Frame2: frame0012.jpg D/SET_PIV: Frame1: frame0012.jpg Frame2: frame0013.jpg D/SET_PIV: Frame1: frame0013.jpg Frame2: frame0014.jpg D/SET_PIV: Frame1: frame0014.jpg Frame2: frame0015.jpg D/SET_PIV: Frame1: frame0015.jpg Frame2: frame0016.jpg D/SET_PIV: Frame1: frame0016.jpg Frame2: frame0017.jpg D/SET_PIV: Frame1: frame0017.jpg Frame2: frame0018.jpg D/SET_PIV: Frame1: frame0018.jpg Frame2: frame0019.jpg D/SET_PIV: Frame1: frame0019.jpg Frame2: frame0020.jpg D/SET_PIV: Frame1: frame0020.jpg Frame2: frame0021.jpg D/SET_PIV: Frame1: frame0021.jpg Frame2: frame0022.jpg D/SET_PIV: Frame1: frame0022.jpg Frame2: frame0023.jpg D/SET_PIV: Frame1: frame0023.jpg Frame2: frame0024.jpg D/SET_PIV: Frame1: frame0024.jpg Frame2: frame0025.jpg
Sample Rate +3 Log D/SET_PIV: Frame1: frame0001.jpg Frame2: frame0004.jpg D/SET_PIV: Frame1: frame0004.jpg Frame2: frame0007.jpg D/SET_PIV: Frame1: frame0007.jpg Frame2: frame0010.jpg D/SET_PIV: Frame1: frame0010.jpg Frame2: frame0013.jpg D/SET_PIV: Frame1: frame0013.jpg Frame2: frame0016.jpg D/SET_PIV: Frame1: frame0016.jpg Frame2: frame0019.jpg D/SET_PIV: Frame1: frame0019.jpg Frame2: frame0022.jpg D/SET_PIV: Frame1: frame0022.jpg Frame2: frame0025.jpg

There is the possibility we aren't displaying the results in the correct order. I'll take a look at that.

jack-elliott commented 1 year ago

So it seems to be just videos I recently captured. I'll look at the vids myself real quick.

jack-elliott commented 1 year ago

This is an issue with the "super-slow" motion video mode in my phone. For some reason segments of the videos in this mode are the same frame twice! Sorry for the trouble, never would have guessed that was the issue.

kp-121 commented 1 year ago

No worries! That is interesting. We could check for matching frames and try the next frame if the frames are equal. This would be future work though.