Skip to content

Commit

Permalink
- fixing xml issues and a tweak to an example
Browse files Browse the repository at this point in the history
  • Loading branch information
lessthanoptimal committed Sep 23, 2014
1 parent ff18624 commit 80b4b05
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import boofcv.alg.distort.ImageDistort;
import boofcv.alg.distort.LensDistortionOps;
import boofcv.core.image.ConvertBufferedImage;
import boofcv.core.image.border.BorderType;
import boofcv.gui.ListDisplayPanel;
import boofcv.gui.image.ImagePanel;
import boofcv.gui.image.ShowImages;
Expand Down Expand Up @@ -64,9 +65,10 @@ public static void main( String args[] ) {
// create new transforms which optimize view area in different ways.
// allInside makes sure there are no dead zones inside the image
// fullView will include the entire original image
ImageDistort allInside = LensDistortionOps.removeDistortion(true,null,param,null,
// The border is VALUE, which defaults to black, just so you can see it
ImageDistort allInside = LensDistortionOps.removeDistortion(true,BorderType.VALUE,param,null,
ImageType.ms(numBands,ImageFloat32.class));
ImageDistort fullView = LensDistortionOps.removeDistortion(false,null,param,null,
ImageDistort fullView = LensDistortionOps.removeDistortion(false,BorderType.VALUE,param,null,
ImageType.ms(numBands,ImageFloat32.class));

// NOTE: After lens distortion has been removed the intrinsic parameters is changed. If you pass
Expand Down

0 comments on commit 80b4b05

Please sign in to comment.