Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-04-15Make it so FATAL messages from libmv are print to the consoleSergey Sharybin
even when --debug-libmv is not passed via command line.
2013-04-15Fix for bundle adjusting with motion restrictedSergey Sharybin
This commit bundles new libmv version from own branch which brings fix for wrong parameter block used for modal solver parameterization. Fixes #34985: Crash with Motion tracker (Tripod Motion)
2013-04-08Bundle adjustment improvementsSergey Sharybin
- Get rid of rotation matrix parameterization, use angle-axis instead. Also Joined rotation and translation into a single parameter block. This made minimization go significantly faster, like 1.3x times in average. - Fix first camera when bundling. This is to address orientation ambiguity. Reconstruction result could still vary in size, but that's another issue to be addressed later. Additional change: Split EuclideanBundleCommonIntrinsics into smaller functions, so it's now a bit easier to follow.
2013-04-08Update ceres to current upstream versionSergey Sharybin
Brings fixes for BLAS.
2013-04-06Revert change made to bilinear sampler in libmvSergey Sharybin
This made preview working but that broke internals of tracking. Namely, BlurredImageAndDerivativesChannels is giving much more blurred image because it was assuming pixel center is an integer position. Guess other parts of libmv used to suffer because of this issue. Now pixel centering happens in blender side, and libmv assumes integer position is a pixel center.
2013-04-05Update libmv to current upstream versionSergey Sharybin
- Solves some strict compilation warning - Style/code cleanup
2013-04-05Bundle current master of ceres-solverSergey Sharybin
Thins brings up some speed improvements: SPARSE_SCHUR is approx 1.3-1.5x times faster ITERATIVE_SCHUR is approx 1.2x times faster For blender this means camera solution go a bit faster now. Would not have affect on tracking speed.
2013-03-21Update ceres to current git version.Sergey Sharybin
Mainly to support msvc2010, bit also includes some minor fixes.
2013-03-15Multi-threaded frame calculation for movie clip proxiesSergey Sharybin
This commit implements multi-threaded calculation of frames when building proxies. Both scaling and undistortion steps are now threaded. Frames and proxy resolution are still handled one-by-one, saving files after every single step. So if HDD is not so fast, this commit could have not so much benefit. Internal changes: - Added IMB_scaleImBuf_threaded which scales given image buffer in multiple threads and uses bilinear filtering. - libmv's camera intrinsics now have SetThreads() method which is used to specify how many OpenMP threads to use for buffer distortion/undistortion. And yeah, this code is using OpenMP for threading. - Reshuffled a bit libmv-capi calls and added function BKE_tracking_distortion_set_threads to specify number of threads used by intrinscis.
2013-03-05Switch from DENSE_NORMAL_CHOLESKY to DENSE_QRSergey Sharybin
DENSE_QR is better behaved numerically and after recent changes from Sameer there's no big difference in speed.
2013-03-05Update Ceres to 1.5RC3Sergey Sharybin
It brings optimization of DENSE_QR and DENSE_SCHUR solvers.
2013-03-01Updates to libmv's bundle.sh to make sure libmv upstreamSergey Sharybin
is copying properly to our sources.
2013-03-01Hrm, gcc became broken after recent commit.Sergey Sharybin
Hope now gcc and 32bit msvc would both work.
2013-03-01Pass data to modal reprojection cost functor by referenceSergey Sharybin
Seems it solves alignment error reported by 32bit MSVC.
2013-02-28Header cleanup in libmv c-apiSergey Sharybin
2013-02-28This lines are also not so much useful for now.Sergey Sharybin
2013-02-28Remove unused rigid registration codeSergey Sharybin
There're some features planned which would require rigid registration, but this code would need to be re-done anyway to use new minimizer and solving some issues with ICP algorithm there.
2013-02-28Modal (aka tripod) solver reworkSergey Sharybin
Several major things are done in this commit: - First of all, logic of modal solver was changed. We do not rely on only minimizer to take care of guessing rotation for frame, but we're using analytical rotation computation for point clouds to obtain initial rotation. Then this rotation is being refined using Ceres minimizer and now instead of minimizing average distance between points of point of two clouds, minimization of reprojection error of point cloud onto frame happens. This gives quite a bit of precision improvement. - Second bigger improvement here is using bundle adjustment for a result of first step when we're only estimating rotation between neighbor images and reprojecting markers. This averages error across the image sequence avoiding error accumulation. Also, this will tweak bundles themselves a bit for better match. - And last bigger improvement here is support of camera intrinsics refirenment. This allowed to significantly improve solution for real-life footage and results after such refining are much more usable than it were before. Thanks to Keir for the help and code review.
2013-02-28Increase verbosity level for reprojected markers infoSergey Sharybin
This information is useful, but in cases when you, say, working on a bundler it's annoying to scroll all the information up. Now behavior would be: - running `./blender --debug-libmv` will print all the debug messages - running `./blender --debug-libmv --verbose 0` will print only debug messages from solvers, recosntruction and so, but will bypass final reprojection bunch of messages - running `./blender --debug-lib,v --verbose 1` will include final reprojection messages.
2013-02-28Move radial distortion code to own templated functionSergey Sharybin
This shall not lead to any functional changes, just avoids radial distortion code duplicated in camera intrinsics and bundling code. For fancier bundle adjustment supprting different distortion models this is not actually enough and would need to make some bigger changes, but this changes makes code a bit easier to maintain already.
2013-02-26Use threaded cost function and jacobian computationSergey Sharybin
Also made it theraded linear solver, seems it makes sense for iterative schur with inner iterations enabled. Use OpenMO's max therads called from bundler code to detect how many threads to use. Could be changed in a way that number of threads is passing in options from blender side in the future. Also removed redundant V3D definition from compiler's flags.
2013-02-26Camera tracking: support refining radial K1, K2 onlySergey Sharybin
This commits adds extra refirenment entry in the menu which is "K1, K2" and which will apparently refine only this distortion coefficients. This would be useful in cases when you know for sure focal length (which could be obtained from lens, EXIF and so) but not sure about how good you manual calibration is. Be careful tho, there're no internal constraints on this coefficients so distortion model could just screw up into insane values.
2013-02-26Camera tracking: switch euclidean intersection code to use CeresSergey Sharybin
Would not expect any significant changes in solver behavior, but it could be more accurate in some cases. Switching projective intersection to ceres is marked as a TODO for now.
2013-02-26Bye-bye, SSBA!Sergey Sharybin
With new bundle adjustment based on Ceres we don't need SSBA library anymore. This also means we don't need ldl library and libmv is no longer depends on colamd as well.
2013-02-26Switch motion tracker bundle adjustment to Ceres.Keir Mierle
Patch originally written by me, then finished by Sergey. Big thanks to Sergey for troopering through and fixing the many issues with my original (not compilable) patch. The Ceres implementation uses 2 parameter blocks for each camera (1 for rotation and 1 for translation), 1 parameter block for common intrinsics (focal length etc) and 1 parameter block for each track (e.g. bundle or 3D point). We turn on some fancy optimizer options to get better performance, in particular: options.preconditioner_type = ceres::SCHUR_JACOBI; options.linear_solver_type = ceres::ITERATIVE_SCHUR; options.use_inner_iterations = true; options.use_nonmonotonic_steps = true; options.max_num_iterations = 100; Special thanks to Sameer Agarwal of Ceres fame for splitting out the SCHUR_JACOBI preconditioner so that it didn't depend on CHOLMOD. Previously we could not use that preconditioner in Blender because CHOLMOD is too large of a dependency for Blender. BundleIntrinsicsLogMessage: - Moved bunch of if(foo) LG << "bar" into this function, to make EuclideanBundleCommonIntrinsics a little bit easier to follow. EuclideanBundle: - Fix RMSE logging.
2013-02-25code cleanup: remove unused and unsupported functions from libmv-capiSergey Sharybin
--- svn merge -r52855:52856 ^/branches/soc-2011-tomato
2013-02-25Camera tracking: libmv distortion API now also uses camera intrinsicsSergey Sharybin
structure instead of passing all the parameters to every function. Makes it much easier to tweak distortion model. --- svn merge -r52854:52855 ^/branches/soc-2011-tomato
2013-02-25Synchronize libmv with own branchSergey Sharybin
Should be no functional changes, just would help a lot checking on which stuff was/shall be merged from tomato and which is not.
2013-02-25code cleanup: camera trackingSergey Sharybin
- Moved keyframes and refirement flags into reconstruction options structure - Moved distortion coefficients and other camera intrinsics into own structure - Cleaned up reconstruction functions in libmv c-api --- svn merge -r52853:52854 ^/branches/soc-2011-tomato
2013-02-25Upgrade Ceres library to current master which is current 1.5RCSergey Sharybin
This is helpful because it brings CHOLMOB-free ITERATIVE_SCHUR and SCHUR_JACOBI which is really nice for new upcoming bundle adjustment. If also includes all the local fixes we made locally. There're lots of other improvements/fixed which are not currently would be so much visible in Blender, but which opens doors for some great improvements in future.
2013-02-22Remove extern_ssba workaroundSergey Sharybin
SSBA seemed to be working OK last time i've checked it with MSVC and optimization enabled. Also, we'll likely replace it with own BA soon, which works fine with MSVC anyway.
2013-02-20Made ldl code a part of extern_ssba library, otherwise gcc fails toSergey Sharybin
find ldl symbols because order of libraries seems to be critical for gcc linker. A bit stupid, but that's how linker works.. Both CMake and SCons shall work fine on linux now.
2013-02-20Correction to previous release -- scons on linux was brokenSergey Sharybin
2013-02-20Fix #34299: Motion Tracking 20x slower under WindowsSergey Sharybin
Root of the issue goes to SSBA library which didn't work properly when using optimization in MSVC. It was worked around by disabling optimization for libmv, which is in fact shame and shouldn't have been done. It seems after some changes optimization does not affect on SSBA code, but enabling optimization could be risky so close to release. For now solved by splitting SSBA to separate CMake/SCons library, disabling optimization only for this particular library and enabling optimization for rest of libmv. Tested on all files which used to fail with optimization enabled in SSBA and all of them works the same as before. Tracking speed is significantly higher now. After release we'll enable optimization for SSBA as well, so there'll be no crappy build setup. Later we'll replace old SSBA library with new BA code based on Ceres. Bundle script would be broken for until then, so better not to use it.
2013-02-18Correction to previous commit, needed to tweak some includeSergey Sharybin
directories after shuffling order of subdirectories and compiler flags tweaks.
2013-02-18Correction to cmake rules for libmv/ceresSergey Sharybin
libmv still requires optimization switched off because of some incompatibility of SSBA and MSVC optimizer which makes bundle adjustment work just wrong. This shall not be an issue for Ceres and no need to disable optimization for extern_ceres
2012-12-20Camera tracking: synchronize changes with own branchSergey Sharybin
Should be no functional changes.
2012-12-10code cleanup: remove unused and unsupported functions from libmv-capiSergey Sharybin
2012-12-10Camera tracking: libmv distortion API now also uses camera intrinsics structureSergey Sharybin
instead of passing all the parameters to every function. Makes it much easier to tweak distortion model.
2012-12-10code cleanup: camera trackingSergey Sharybin
- Moved keyframes and refirement flags into reconstruction options structure - Moved distortion coefficients and other camera intrinsics into own structure - Cleaned up reconstruction functions in libmv c-api
2012-12-10Merging r51923 through r52851 from trunk into soc-2011-tomatoSergey Sharybin
2012-12-09Fix for camera solver not working properly when built with sconsSergey Sharybin
2012-12-07Camera tracking: fixed type in camera intrinsics update functionSergey Sharybin
Seems to be from the very beginning here, not sure why nobody noticed this is wrong.
2012-12-04cmake was missing some header files.Campbell Barton
2012-11-20Motion tracking: dump mask image when dump images is enabledSergey Sharybin
This is pure development option which is enabled by defining DUMP_FAILURE or DUMP_ALWAYS libmv-capi.
2012-11-05Merging r50625 through r51896 from trunk into soc-2011-tomatoSergey Sharybin
Merging just in case we'll want to develop some experimental stuff
2012-11-05Camera Tracking: allow fallback to reprojection resection by user demandSergey Sharybin
This fixes some "regressions" introduced in rev50781 which lead to much worse solution in some cases. Now it's possible to bring old behavior back. Perhaps it's more like temporal solution for time being smarter solution is found. But finding such a solution isn't so fast, so let's bring manual control over reprojection usage. But anyway, imo it's now nice to have a structure which could be used to pass different settings to the solver.
2012-10-17code cleanup:Campbell Barton
- move object_iterators.c --> view3d_iterators. (ED_object.h had to include ED_view3d.h which isn't so nice) - move projection functions from view3d_view.c --> view3d_project.c (view3d_view was becoming a mishmash of utility functions and operators). - some some cmake includes as system-includes.
2012-10-14code cleanup: remove redundant castsCampbell Barton
2012-09-20Make Euclidean resection "always" succeed.Keir Mierle
The Euclidean resection code had a magical constant, 1e-3, used to compare the results of solving an equation. This failure detection was well-intended, trying to prevent poor solutions from getting made without notifying the caller. Unfortunately in practice, this threshold is too conservative. Furthermore, it is not clear the threshold should exist at all; the purpose of the Euclidean resection is to come up with the best solution it can; other methods (e.g. reprojection error) should be used to compare whether the method succeeded. This commit changes the Euclidean EPnP code to always succeed, causing the previous fallback to projective resection to never run. In most cases, this will result in better reconstructions. This should, in most cases, fix the dreaded "flipping" problem.