Tabnine Logo
GrayS8.reshape
Code IndexAdd Tabnine to your IDE (free)

How to use
reshape
method
in
boofcv.struct.image.GrayS8

Best Java code snippets using boofcv.struct.image.GrayS8.reshape (Showing top 10 results out of 315)

origin: org.boofcv/boofcv-ip

/**
 * <p>
 * Converts an {@link boofcv.struct.image.GrayF64} into a {@link boofcv.struct.image.GrayS8}.
 * </p>
 *
 * @param input Input image which is being converted. Not modified.
 * @param output (Optional) The output image.  If null a new image is created. Modified.
 * @return Converted image.
 */
public static GrayS8 convert(GrayF64 input, GrayS8 output) {
  if (output == null) {
    output = new GrayS8(input.width, input.height);
  } else {
    output.reshape(input.width,input.height);
  }
  ImplConvertImage.convert(input, output);
  return output;
}
origin: org.boofcv/boofcv-ip

/**
 * <p>
 * Converts an {@link boofcv.struct.image.GrayS32} into a {@link boofcv.struct.image.GrayS8}.
 * </p>
 *
 * @param input Input image which is being converted. Not modified.
 * @param output (Optional) The output image.  If null a new image is created. Modified.
 * @return Converted image.
 */
public static GrayS8 convert(GrayS32 input, GrayS8 output) {
  if (output == null) {
    output = new GrayS8(input.width, input.height);
  } else {
    output.reshape(input.width,input.height);
  }
  ImplConvertImage.convert(input, output);
  return output;
}
origin: org.boofcv/boofcv-ip

/**
 * <p>
 * Converts an {@link boofcv.struct.image.GrayF32} into a {@link boofcv.struct.image.GrayS8}.
 * </p>
 *
 * @param input Input image which is being converted. Not modified.
 * @param output (Optional) The output image.  If null a new image is created. Modified.
 * @return Converted image.
 */
public static GrayS8 convert(GrayF32 input, GrayS8 output) {
  if (output == null) {
    output = new GrayS8(input.width, input.height);
  } else {
    output.reshape(input.width,input.height);
  }
  ImplConvertImage.convert(input, output);
  return output;
}
origin: org.boofcv/boofcv-ip

/**
 * Converts a {@link Planar} into a {@link ImageGray} by computing the average value of each pixel
 * across all the bands.
 * 
 * @param input Input Planar image that is being converted. Not modified.
 * @param output (Optional) The single band output image.  If null a new image is created. Modified.
 * @return Converted image.
 */
public static GrayS8 average( Planar<GrayS8> input , GrayS8 output ) {
  if (output == null) {
    output = new GrayS8(input.width, input.height);
  } else {
    output.reshape(input.width,input.height);
  }
  ImplConvertPlanarToGray.average(input, output);
  return output;
}
origin: org.boofcv/boofcv-ip

/**
 * Converts a {@link InterleavedS8} into a {@link GrayS8} by computing the average value of each pixel
 * across all the bands.
 * 
 * @param input (Input) The ImageInterleaved that is being converted. Not modified.
 * @param output (Optional) The single band output image.  If null a new image is created. Modified.
 * @return Converted image.
 */
public static GrayS8 average( InterleavedS8 input , GrayS8 output ) {
  if (output == null) {
    output = new GrayS8(input.width, input.height);
  } else {
    output.reshape(input.width,input.height);
  }
  ConvertInterleavedToSingle.average(input, output);
  return output;
}
origin: org.boofcv/boofcv-ip

/**
 * <p>
 * Converts an {@link boofcv.struct.image.GrayU8} into a {@link boofcv.struct.image.GrayS8}.
 * </p>
 *
 * @param input Input image which is being converted. Not modified.
 * @param output (Optional) The output image.  If null a new image is created. Modified.
 * @return Converted image.
 */
public static GrayS8 convert(GrayU8 input, GrayS8 output) {
  if (output == null) {
    output = new GrayS8(input.width, input.height);
  } else {
    output.reshape(input.width,input.height);
  }
  ImplConvertImage.convert(input, output);
  return output;
}
origin: org.boofcv/boofcv-ip

/**
 * <p>
 * Converts an {@link boofcv.struct.image.GrayU16} into a {@link boofcv.struct.image.GrayS8}.
 * </p>
 *
 * @param input Input image which is being converted. Not modified.
 * @param output (Optional) The output image.  If null a new image is created. Modified.
 * @return Converted image.
 */
public static GrayS8 convert(GrayU16 input, GrayS8 output) {
  if (output == null) {
    output = new GrayS8(input.width, input.height);
  } else {
    output.reshape(input.width,input.height);
  }
  ImplConvertImage.convert(input, output);
  return output;
}
origin: org.boofcv/boofcv-ip

/**
 * <p>
 * Converts an {@link boofcv.struct.image.GrayS16} into a {@link boofcv.struct.image.GrayS8}.
 * </p>
 *
 * @param input Input image which is being converted. Not modified.
 * @param output (Optional) The output image.  If null a new image is created. Modified.
 * @return Converted image.
 */
public static GrayS8 convert(GrayS16 input, GrayS8 output) {
  if (output == null) {
    output = new GrayS8(input.width, input.height);
  } else {
    output.reshape(input.width,input.height);
  }
  ImplConvertImage.convert(input, output);
  return output;
}
origin: org.boofcv/boofcv-ip

/**
 * <p>
 * Converts an {@link boofcv.struct.image.GrayS64} into a {@link boofcv.struct.image.GrayS8}.
 * </p>
 *
 * @param input Input image which is being converted. Not modified.
 * @param output (Optional) The output image.  If null a new image is created. Modified.
 * @return Converted image.
 */
public static GrayS8 convert(GrayS64 input, GrayS8 output) {
  if (output == null) {
    output = new GrayS8(input.width, input.height);
  } else {
    output.reshape(input.width,input.height);
  }
  ImplConvertImage.convert(input, output);
  return output;
}
origin: org.boofcv/feature

suppressed.reshape(input.width,input.height);
angle.reshape(input.width,input.height);
direction.reshape(input.width,input.height);
work.reshape(input.width,input.height);
boofcv.struct.imageGrayS8reshape

Popular methods of GrayS8

  • getHeight
  • getWidth
  • <init>
    Creates a new gray scale (single band/color) image.
  • get
  • getIndex
  • getStartIndex
  • getStride
  • isSubimage
  • set
  • setTo
  • unsafe_get
  • unsafe_get

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • findViewById (Activity)
  • putExtra (Intent)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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