Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

How images.sumI is accumulated in UAVprocessingtoolbox #83

Open
trkim117 opened this issue Feb 13, 2019 · 4 comments
Open

How images.sumI is accumulated in UAVprocessingtoolbox #83

trkim117 opened this issue Feb 13, 2019 · 4 comments

Comments

@trkim117
Copy link

Hope someone knows how images.sumI is accumulated.
I am going to save every rectified image in UAVtoolbox.
To do this, I have to track incremental algorithm for images.sumI
but I could not find it.

In makeFinalImages.m 
finalImages.timex = uint8(images.sumI./N); 

So, I understand images.sumI is the accumulated image but I could not find the algorithm for accumulation.

I am pretty sure there should be. I might miss something. 

In buildRectProducts.m, it is mentioned that 

%These will accumulate as the function is
% called incrementally.  After all images are accumulated, image products
% are computed using function makeFinalRects.  dn, I are the current image
% and time, while images is used as both input and output (with incremental
% information).I could not find incremental information except 
 
images.N(good) = images.N(good)+1; 

Could you point out where images.sumI is accumulated? 

Thanks alwasys!

@SRHarrison
Copy link

Hi Dr. Kim,
If you look in the file sampleAerielleVideoDemoPIX.m, in lines 157 to 207 there is a for loop where the code runs through all frames of the video. On line 203,
images = buildRectProducts(dn(cnt), images, double(I), betas(cnt,:), meta.globals);
updates the structural array 'images' with the incremental accumulation of image products.
After all frames are processed, the final images are made and then printed to jpg between lines 211 and 232.

@trkim117
Copy link
Author

trkim117 commented Feb 14, 2019 via email

@SRHarrison
Copy link

SRHarrison commented Feb 15, 2019 via email

@trkim117
Copy link
Author

trkim117 commented Feb 18, 2019 via email

@trkim117 trkim117 reopened this Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants