Jamy-L / handheld-sr-satellite

Handheld burst super resolution applied to satellite imagery
MIT License
6 stars 0 forks source link

Shift and Add problem #4

Open aaaaaabcder opened 7 months ago

aaaaaabcder commented 7 months ago

Hi, I'm very interested in your project. I'm currently trying to use the shift and add function. Since I haven't seen any usage instructions, I'd like to ask:

  1. Do I need to use any other functions before or after using it?
  2. What is the input for the shift and add function "flows"? Can I use two frames as inputs? Thank you.
Jamy-L commented 7 months ago

Hi, the shift and add function was not made by me, but simply grabbed from this repo, they may give better answers.

It looks like you can apply shift and add to your frames as long as they have the same normalisation (an extra step may be required if they have different exposures). The flow refers to the geometric transform between the coordinates of the frame, you can see exactly how it is used here. The idea is that a point of coordinates i,j in the reference frame is located at position (i + flow[i, j, 0], j+flow[i, j, 1]) in the other frame. By convention the reference frame is often the first one of the stack, and the flow is computed with every other frame). You can estimate the flow by using Fnet or ShiftNet in models.py

aaaaaabcder commented 7 months ago

Okay, I'll give it another try. Thank you for your assistance.