Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

DisparityMap: Utilities for homography transform

  • Loading branch information...
commit bca4643a5bb82fe9b06943cf83015b19bb9cf5ac 1 parent 3704917
@oleg-alexandrov oleg-alexandrov authored
Showing with 12 additions and 2 deletions.
  1. +11 −1 src/vw/Stereo/DisparityMap.h
  2. +1 −1  src/vw/Stereo/Makefile.am
View
12 src/vw/Stereo/DisparityMap.h
@@ -565,6 +565,17 @@ namespace stereo {
}
};
+
+ // Given a homography transform restricted to a subregion, adjust
+ // accordingly the disparity between left and right images. This
+ // function is on purpose only integer disparities, as we round the
+ // output.
+ ImageView< PixelMask<Vector2i> >
+ transform_disparities(BBox2i subregion,
+ Matrix<double> const& T,
+ ImageView< PixelMask<Vector2i> > const& disparity
+ );
+
/// intersect_mask_and_data(view, mask)
///
/// Intersects 'mask' w/ view. View's data is returned first or mask
@@ -701,4 +712,3 @@ namespace stereo {
#endif // _VWDISPARITYMAP_H_
-
View
2  src/vw/Stereo/Makefile.am
@@ -32,7 +32,7 @@ include_HEADERS = AffineMixtureComponent.h Algorithms.h Correlate.h \
UniformMixtureComponent.h
libvwStereo_la_SOURCES = StereoModel.cc Correlate.cc Correlation.cc \
- EMSubpixelCorrelatorView.cc CorrelateResearch.cc
+ DisparityMap.cc EMSubpixelCorrelatorView.cc CorrelateResearch.cc
libvwStereo_la_LIBADD = @MODULE_STEREO_LIBS@
Please sign in to comment.
Something went wrong with that request. Please try again.