You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Offending line no. 77 in noise.hpp - robust means and variance arrays are sometimes too small compared to the number of patches resulting from the quadtree segmentation:
// Perform quadtree decomposition of frames// to generate patches for noise estimationint maxVsize = (Nx/size)*(Ny/size);
arma::vec means = -1 * arma::ones<arma::vec>(T*maxVsize);
arma::vec vars = -1 * arma::ones<arma::vec>(T*maxVsize);
Current "fix" on line 84 doesn't always help - still get an Armadillo error on some noise estimation problems. Thanks to @bm424 for reminding me.
The text was updated successfully, but these errors were encountered:
Simplest fix is to over-compensate with the array size by replacing int maxVsize = (Nx/size)*(Ny/size) with int maxVsize = (Nx*Ny), since the code subsequently deletes all irrelevant elements anyway (I couldn't think of a smarter way around this at the time, and I'm sure the actual problem is not line no. 77 but another one - but this should fix it anyway).
Offending line no. 77 in
noise.hpp
- robust means and variance arrays are sometimes too small compared to the number of patches resulting from the quadtree segmentation:Current "fix" on line 84 doesn't always help - still get an Armadillo error on some noise estimation problems. Thanks to @bm424 for reminding me.
The text was updated successfully, but these errors were encountered: