congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ConvertBufferedImage.convertTo
Code IndexAdd Tabnine to your IDE (free)

How to use
convertTo
method
in
boofcv.io.image.ConvertBufferedImage

Best Java code snippets using boofcv.io.image.ConvertBufferedImage.convertTo (Showing top 20 results out of 315)

origin: org.boofcv/demonstrations

    public void run() {
      images.clear();
      images.add(ConvertBufferedImage.convertTo(output,null,true));
      images.add(ConvertBufferedImage.convertTo(noisy,null,true));
      images.add(ConvertBufferedImage.convertTo(input,null,true));
      info.reset();
      doRefreshAll();
    }});
}
origin: org.boofcv/visualize

public void addImage( ImageBase image , String name ) {
  BufferedImage buff = ConvertBufferedImage.convertTo(image, null, true);
  addImage(buff, name, ScaleOptions.DOWN);
}
origin: org.boofcv/boofcv-swing

public static ImagePanel showWindow( ImageBase img, String title ) {
  BufferedImage buff = ConvertBufferedImage.convertTo(img,null,true);
  return showWindow(buff,title);
}
origin: org.boofcv/boofcv-swing

public void addImage( ImageBase image , String name ) {
  BufferedImage buff = ConvertBufferedImage.convertTo(image, null, true);
  addImage(buff, name, ScaleOptions.DOWN);
}
origin: org.boofcv/demonstrations

  public void run() {
    ConvertBufferedImage.convertTo(output, renderedImage, true);
    gui.repaint();
  }
});
origin: org.boofcv/demonstrations

private void renderCameraModel() {
  undistorter.apply(dist,undist);
  if( out != null && (out.getWidth() != undist.width || out.getHeight() != undist.height )) {
    out = new BufferedImage(undist.width, undist.height, out.getType());
  }
  out = ConvertBufferedImage.convertTo(undist,out,true);
  gui.setImageUI(out);
}
origin: org.boofcv/demonstrations

  public void run() {
    ConvertBufferedImage.convertTo(corruptImage, workImage, true);
    Graphics2D g2 = workImage.createGraphics();
    g2.setStroke(new BasicStroke(3));
    render.draw(g2);
    panel.repaint();
  }
});
origin: org.boofcv/demonstrations

  public void run() {
    ConvertBufferedImage.convertTo(corruptImage, workImage,true);
    Graphics2D g2 = workImage.createGraphics();
    g2.setStroke(new BasicStroke(3));
    render.draw(g2);
    panel.repaint();
  }
});
origin: org.boofcv/demonstrations

    public void run() {
      info.setWaveletActive(denoiser!=null);
      ConvertBufferedImage.convertTo(output,images.get(0),true);
      ConvertBufferedImage.convertTo(noisy,images.get(1),true);
      info.setError(algError,algErrorEdge,noiseError,noiseErrorEdge);
      imagePanel.repaint();
      info.repaint();
      processedImage = true;
    }});
}
origin: org.boofcv/demonstrations

private void renderOutput(T in) {
  distortImage.apply(in,distorted);
  ConvertBufferedImage.convertTo(distorted,rendered,true);
  panelImage.setImageUI(rendered);
}
origin: org.boofcv/demonstrations

private void renderOutput(T in) {
  distortImage.apply(in,distorted);
  ConvertBufferedImage.convertTo(distorted,rendered,true);
  panelImage.setImageUI(rendered);
}
origin: org.boofcv/boofcv-swing

private void doNotScaleLayers() {
  int N = pyramid.getNumLayers();
  for( int i = 0; i < N; i++ ) {
    BufferedImage b = ConvertBufferedImage.convertTo(pyramid.getLayer(i),null,true);
    addImage(b,String.format("%5.2f",pyramid.getScale(i)));
  }
}
origin: org.boofcv/boofcv-swing

private void renderPinhole() {
  if( distortImage == null )
    return;
  imageRendered.reshape(pinholeModel.width,pinholeModel.height);
  distortImage.apply(imageFisheye,imageRendered);
  bufferedRendered = ConvertBufferedImage.checkDeclare(
      imageRendered.width,imageRendered.height,bufferedRendered,BufferedImage.TYPE_INT_RGB);
  ConvertBufferedImage.convertTo(imageRendered,bufferedRendered,true);
}
origin: org.boofcv/boofcv-jcodec

@Override
public <InternalImage> InternalImage getGuiImage() {
  Planar<GrayU8> boofColor = new Planar<>(GrayU8.class,
      frameCurrent.getWidth(),frameCurrent.getHeight(),3);
  BufferedImage output = new BufferedImage(boofColor.width,boofColor.height,BufferedImage.TYPE_INT_RGB);
  UtilJCodec.convertToBoof(frameCurrent,boofColor);
  ConvertBufferedImage.convertTo(boofColor,output,true);
  return (InternalImage)output;
}
origin: org.boofcv/demonstrations

  private void rerenderPinhole() {
//        long before = System.nanoTime();
    distortImage.apply(equi,pinhole);
//        long after = System.nanoTime();

//        System.out.println("Rendering time "+(after-before)/1e6+" ms");

    ConvertBufferedImage.convertTo(pinhole,buffPinhole,true);
    panelPinhole.setImageUI(buffPinhole);
    panelEqui.repaint();
  }

origin: org.boofcv/visualize

private void doNotScaleLayers() {
  int N = pyramid.getNumLayers();
  for( int i = 0; i < N; i++ ) {
    BufferedImage b = ConvertBufferedImage.convertTo(pyramid.getLayer(i),null,true);
    addImage(b,String.format("%5.2f",pyramid.getScale(i)));
  }
}
origin: org.boofcv/demonstrations

  private void rerenderPinhole() {
//        long before = System.nanoTime();
    distortImage.apply(fisheye,pinhole);
//        long after = System.nanoTime();
//        System.out.println("Rendering time "+(after-before)/1e6+" ms");

    ConvertBufferedImage.convertTo(pinhole,buffPinhole,true);
    panelPinhole.setImageUI(buffPinhole);
    panelFisheye.repaint();
  }

origin: org.boofcv/jcodec

@Override
public <InternalImage> InternalImage getGuiImage() {
  Planar<GrayU8> boofColor = new Planar<>(GrayU8.class,
      frameCurrent.getWidth(),frameCurrent.getHeight(),3);
  BufferedImage output = new BufferedImage(boofColor.width,boofColor.height,BufferedImage.TYPE_INT_RGB);
  UtilJCodec.convertToBoof(frameCurrent,boofColor);
  ConvertBufferedImage.convertTo(boofColor,output,true);
  return (InternalImage)output;
}
origin: org.boofcv/visualize

private void undoRadialDistortion(BufferedImage image) {
  ConvertBufferedImage.convertFromMulti(image, origMS,true, GrayF32.class);
  for( int i = 0; i < origMS.getNumBands(); i++ ) {
    GrayF32 in = origMS.getBand(i);
    GrayF32 out = correctedMS.getBand(i);
    undoRadial.apply(in,out);
  }
  if( correctedMS.getNumBands() == 3 )
    ConvertBufferedImage.convertTo(correctedMS,undistorted,true);
  else if( correctedMS.getNumBands() == 1 )
    ConvertBufferedImage.convertTo(correctedMS.getBand(0),undistorted);
  else
    throw new RuntimeException("What kind of image has "+correctedMS.getNumBands()+"???");
}
origin: org.boofcv/demonstrations

private void applyScaling() {
  scaledImage.reshape(panel.getWidth(), panel.getHeight());
  if( scaledImage.width <= 0 || scaledImage.height <= 0 ) {
    return;
  }
  if( latestImage.width != 0 && latestImage.height != 0 ) {
    new FDistort(latestImage, scaledImage).interp(interpType).border(BorderType.EXTENDED).scale().apply();
    BufferedImage out = ConvertBufferedImage.convertTo(scaledImage, null, true);
    panel.setImageUI(out);
    panel.repaint();
  }
}
boofcv.io.imageConvertBufferedImageconvertTo

Javadoc

Converts the buffered image into an GrayF32. If the buffered image has multiple channels then the input image is copied into each channel. The floating point image is assumed to be between 0 and 255.

Popular methods of ConvertBufferedImage

  • convertFrom
    Converts a buffered image into an image of the specified type.
  • convertFromSingle
  • checkDeclare
  • convertFromMulti
    Converts the buffered image into an Planar image of the specified type.
  • convertFromPlanar
  • convertTo_F32
    Converts a Planar GrayF32 into a BufferedImage.
  • checkCopy
  • checkInputs
    If null the dst is declared, otherwise it checks to see if the 'dst' as the same shape as 'src'.
  • convertFromInterleaved
  • convertTo_U8
    Converts a Planar GrayU8 into a BufferedImage.
  • orderBandsBufferedFromRGB
    The image the BufferedImage was created from had RGB or RGBA color order. This swaps the bytes aroun
  • orderBandsBufferedFromRgb
  • orderBandsBufferedFromRGB,
  • orderBandsBufferedFromRgb,
  • orderBandsIntoBuffered,
  • orderBandsIntoRGB,
  • swapBandOrder

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Path (java.nio.file)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now