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

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

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

origin: org.boofcv/boofcv-ip

@Override
public int unsafe_get(int x, int y) {
  return data[getIndex(x, y)];
}
origin: org.boofcv/boofcv-ip

public static void convert( GrayS8 from, GrayI8 to ) {
  if (from.isSubimage() || to.isSubimage()) {
    for (int y = 0; y < from.height; y++) {
      int indexFrom = from.getIndex(0, y);
      int indexTo = to.getIndex(0, y);
      for (int x = 0; x < from.width; x++) {
        to.data[indexTo++] = ( from.data[indexFrom++] );
      }
    }
  } else {
    final int N = from.width * from.height;
    System.arraycopy(from.data, 0, to.data, 0, N);
  }
}
origin: org.boofcv/boofcv-ip

for (int y = 0; y < from.height; y++) {
  int indexFrom = from.getIndex(0, y);
  int indexTo = to.getIndex(0, y);
  System.arraycopy(from.data,indexFrom,to.data,indexTo,from.width);
for (int y = 0; y < from.height; y++) {
  int indexFrom = from.getIndex(0, y);
  int indexTo = to.getIndex(0, y);
  int indexEndTo = indexTo + from.width;
for (int y = 0; y < from.height; y++) {
  int indexFrom = from.getIndex(0, y);
  int indexTo = to.getIndex(0, y);
  int indexEndTo = indexTo + from.width;
for (int y = 0; y < from.height; y++) {
  int indexFrom = from.getIndex(0, y);
  int indexTo = to.getIndex(0, y);
origin: org.boofcv/boofcv-ip

public static void convert( GrayS8 from, GrayS32 to ) {
  if (from.isSubimage() || to.isSubimage()) {
    for (int y = 0; y < from.height; y++) {
      int indexFrom = from.getIndex(0, y);
      int indexTo = to.getIndex(0, y);
      for (int x = 0; x < from.width; x++) {
        to.data[indexTo++] = ( from.data[indexFrom++] );
      }
    }
  } else {
    final int N = from.width * from.height;
    for (int i = 0; i < N; i++) {
      to.data[i] = ( from.data[i] );
    }
  }
}
origin: org.boofcv/boofcv-ip

public static void convert( GrayS8 from, GrayF32 to ) {
  if (from.isSubimage() || to.isSubimage()) {
    for (int y = 0; y < from.height; y++) {
      int indexFrom = from.getIndex(0, y);
      int indexTo = to.getIndex(0, y);
      for (int x = 0; x < from.width; x++) {
        to.data[indexTo++] = ( float )( from.data[indexFrom++] );
      }
    }
  } else {
    final int N = from.width * from.height;
    for (int i = 0; i < N; i++) {
      to.data[i] = ( float )( from.data[i] );
    }
  }
}
origin: org.boofcv/boofcv-ip

public static void convert( GrayS8 from, GrayI16 to ) {
  if (from.isSubimage() || to.isSubimage()) {
    for (int y = 0; y < from.height; y++) {
      int indexFrom = from.getIndex(0, y);
      int indexTo = to.getIndex(0, y);
      for (int x = 0; x < from.width; x++) {
        to.data[indexTo++] = ( short )( from.data[indexFrom++] );
      }
    }
  } else {
    final int N = from.width * from.height;
    for (int i = 0; i < N; i++) {
      to.data[i] = ( short )( from.data[i] );
    }
  }
}
origin: org.boofcv/boofcv-ip

public static void convert( GrayS8 from, GrayS64 to ) {
  if (from.isSubimage() || to.isSubimage()) {
    for (int y = 0; y < from.height; y++) {
      int indexFrom = from.getIndex(0, y);
      int indexTo = to.getIndex(0, y);
      for (int x = 0; x < from.width; x++) {
        to.data[indexTo++] = ( from.data[indexFrom++] );
      }
    }
  } else {
    final int N = from.width * from.height;
    for (int i = 0; i < N; i++) {
      to.data[i] = ( from.data[i] );
    }
  }
}
origin: org.boofcv/boofcv-ip

public static void convert( GrayS8 from, GrayF64 to ) {
  if (from.isSubimage() || to.isSubimage()) {
    for (int y = 0; y < from.height; y++) {
      int indexFrom = from.getIndex(0, y);
      int indexTo = to.getIndex(0, y);
      for (int x = 0; x < from.width; x++) {
        to.data[indexTo++] = ( double )( from.data[indexFrom++] );
      }
    }
  } else {
    final int N = from.width * from.height;
    for (int i = 0; i < N; i++) {
      to.data[i] = ( double )( from.data[i] );
    }
  }
}
origin: org.boofcv/feature

Point2D_I32 p = s.points.get(0);
indexInten = intensity.getIndex(p.x,p.y);
int indexDir = direction.getIndex(p.x,p.y);
        p = s.points.get( s.points.size()-1 );
        indexInten = intensity.getIndex(p.x, p.y);
        indexDir = direction.getIndex(p.x,p.y);
origin: org.boofcv/boofcv-ip

  int indexTo = to.getIndex(0, y);
for (int y = 0; y < from.height; y++) {
  int indexFrom = from.getIndex(0, y);
  int indexTo = to.getIndex(0, y);
origin: org.boofcv/feature

active.set(open.removeTail());
indexInten = intensity.getIndex(active.x,active.y);
int indexDir = direction.getIndex(active.x,active.y);
        indexDir = direction.getIndex(active.x,active.y);
boofcv.struct.imageGrayS8getIndex

Popular methods of GrayS8

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

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • String (java.lang)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Top 15 Vim Plugins
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