Program: 151095
Project: 151095
Buggy source:
public static void rectify(DenseMatrix64F F,List<AssociatedPair> inliers,BufferedImage origLeft,BufferedImage origRight){
  MultiSpectral<ImageFloat32> distLeft=ConvertBufferedImage.convertFromMulti(origLeft,null,ImageFloat32.class);
  MultiSpectral<ImageFloat32> distRight=ConvertBufferedImage.convertFromMulti(origRight,null,ImageFloat32.class);
  MultiSpectral<ImageFloat32> rectLeft=new MultiSpectral<ImageFloat32>(ImageFloat32.class,distLeft.getWidth(),distLeft.getHeight(),distLeft.getNumBands());
  MultiSpectral<ImageFloat32> rectRight=new MultiSpectral<ImageFloat32>(ImageFloat32.class,distRight.getWidth(),distRight.getHeight(),distRight.getNumBands());
  RectifyFundamental rectifyAlg=RectifyImageOps.createFundamental();
  rectifyAlg.process(F,inliers,origLeft.getWidth(),origLeft.getHeight());
  DenseMatrix64F rect1=rectifyAlg.getRect1();
  DenseMatrix64F rect2=rectifyAlg.getRect2();
  RectifyImageOps.fullViewLeft(origLeft.getWidth(),origLeft.getHeight(),true,rect1,rect2);
  rect1.print();
  rect2.print();
  ImageDistort<ImageFloat32> imageDistortLeft=RectifyImageOps.rectifyImage(origLeft.getHeight(),true,rect1,ImageFloat32.class);
  ImageDistort<ImageFloat32> imageDistortRight=RectifyImageOps.rectifyImage(origLeft.getHeight(),true,rect2,ImageFloat32.class);
  DistortImageOps.distortMS(distLeft,rectLeft,imageDistortLeft);
  DistortImageOps.distortMS(distRight,rectRight,imageDistortRight);
  BufferedImage outLeft=ConvertBufferedImage.convertTo(rectLeft,null);
  BufferedImage outRight=ConvertBufferedImage.convertTo(rectRight,null);
  ShowImages.showWindow(new RectifiedPairPanel(true,origLeft,origRight),"String_Node_Str");
  ShowImages.showWindow(new RectifiedPairPanel(true,outLeft,outRight),"String_Node_Str");
}

Fixed version (ground truth):
public static void rectify(DenseMatrix64F F,List<AssociatedPair> inliers,BufferedImage origLeft,BufferedImage origRight){
  MultiSpectral<ImageFloat32> distLeft=ConvertBufferedImage.convertFromMulti(origLeft,null,ImageFloat32.class);
  MultiSpectral<ImageFloat32> distRight=ConvertBufferedImage.convertFromMulti(origRight,null,ImageFloat32.class);
  MultiSpectral<ImageFloat32> rectLeft=new MultiSpectral<ImageFloat32>(ImageFloat32.class,distLeft.getWidth(),distLeft.getHeight(),distLeft.getNumBands());
  MultiSpectral<ImageFloat32> rectRight=new MultiSpectral<ImageFloat32>(ImageFloat32.class,distRight.getWidth(),distRight.getHeight(),distRight.getNumBands());
  RectifyFundamental rectifyAlg=RectifyImageOps.createFundamental();
  rectifyAlg.process(F,inliers,origLeft.getWidth(),origLeft.getHeight());
  DenseMatrix64F rect1=rectifyAlg.getRect1();
  DenseMatrix64F rect2=rectifyAlg.getRect2();
  rect1.print();
  rect2.print();
  ImageDistort<ImageFloat32> imageDistortLeft=RectifyImageOps.rectifyImage(origLeft.getHeight(),isLeftHanded,rect1,ImageFloat32.class);
  ImageDistort<ImageFloat32> imageDistortRight=RectifyImageOps.rectifyImage(origLeft.getHeight(),isLeftHanded,rect2,ImageFloat32.class);
  DistortImageOps.distortMS(distLeft,rectLeft,imageDistortLeft);
  DistortImageOps.distortMS(distRight,rectRight,imageDistortRight);
  BufferedImage outLeft=ConvertBufferedImage.convertTo(rectLeft,null);
  BufferedImage outRight=ConvertBufferedImage.convertTo(rectRight,null);
  ShowImages.showWindow(new RectifiedPairPanel(true,origLeft,origRight),"String_Node_Str");
  ShowImages.showWindow(new RectifiedPairPanel(true,outLeft,outRight),"String_Node_Str");
}