congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
loci.formats.out
Code IndexAdd Tabnine to your IDE (free)

How to use loci.formats.out

Best Java code snippets using loci.formats.out (Showing top 20 results out of 315)

origin: ome/formats-bsd

/**
 * Saves the given image to the specified (possibly already open) file.
 * The IFD hashtable allows specification of TIFF parameters such as bit
 * depth, compression and units.
 */
public void saveBytes(int no, byte[] buf, IFD ifd)
 throws IOException, FormatException
{
 int w = getSizeX();
 int h = getSizeY();
 saveBytes(no, buf, ifd, 0, 0, w, h);
}
origin: openmicroscopy/bioformats

/**
 * @see loci.formats.IFormatWriter#saveBytes(int, byte[], int, int, int, int)
 */
@Override
public void saveBytes(int no, byte[] buf, int x, int y, int w, int h)
 throws FormatException, IOException
{
  // always save to full image
  saveBytes(no, buf);
}

origin: openmicroscopy/bioformats

@Override
public int getPlaneCount() {
 return getPlaneCount(series);
}
origin: ome/formats-bsd

@Override
public void setId(String id) throws FormatException, IOException {
 if (id.equals(currentId)) return;
 super.setId(id);
 if (imageLocations == null) {
  MetadataRetrieve r = getMetadataRetrieve();
  imageLocations = new String[r.getImageCount()][];
  for (int i=0; i<imageLocations.length; i++) {
   setSeries(i);
   imageLocations[i] = new String[planeCount()];
  }
  setSeries(0);
 }
}
origin: openmicroscopy/bioformats

/**
 * @see loci.formats.IFormatWriter#saveBytes(int, byte[], int, int, int, int)
 */
@Override
public void saveBytes(int no, byte[] buf, IFD ifd, int x, int y, int w, int h)
 throws FormatException, IOException
{
 super.saveBytes(no, buf, ifd, x, y, w, h);
 int index = no;
 while (imageLocations[series][index] != null) {
  if (index < imageLocations[series].length - 1) {
   index++;
  }
  else {
   break;
  }
 }
 imageLocations[series][index] = currentId;
}
origin: omero/romio

@Override
public void setId(String id) throws FormatException, IOException
{
  log.debug("setId(" + id + ")");
  super.setId(id);
}
origin: ome/formats-bsd

/**
 * @see loci.formats.IFormatWriter#saveBytes(int, byte[], int, int, int, int)
 */
@Override
public void saveBytes(int no, byte[] buf, int x, int y, int w, int h)
 throws FormatException, IOException
{
 saveBytes(no, buf, null, x, y, w, h);
}
origin: ome/formats-bsd

@Override
public boolean isThisType(String name) {
 if (!super.isThisType(name)) {
  return false;
 }
 if (resolutionData.size() > 0) {
  return true;
 }
 MetadataRetrieve r = getMetadataRetrieve();
 if (!(r instanceof IPyramidStore)) {
  return false;
 }
 return ((IPyramidStore) r).getResolutionCount(0) > 1;
}
origin: ome/formats-bsd

private int crc(byte[] buf) {
 return crc(buf, 0, buf.length);
}
origin: openmicroscopy/bioformats

/**
 * @see loci.formats.IFormatWriter#saveBytes(int, byte[], int, int, int, int)
 */
@Override
public void saveBytes(int no, byte[] buf, int x, int y, int w, int h)
 throws FormatException, IOException
{
 if(wlz != null) {
  checkParams(no, buf, x, y, w, h);
  wlz.saveBytes(no, buf, x, y, w, h);
 }
}
origin: ome/formats-bsd

public String getCompanion() {
 MetadataOptions options = getMetadataOptions();
 if (options instanceof DynamicMetadataOptions) {
  return ((DynamicMetadataOptions) options).get(COMPANION_KEY);
 }
 return null;
}
origin: openmicroscopy/bioformats

@Override
public void close() throws IOException {
 if (out != null) writeFooter();
 super.close();
}
origin: openmicroscopy/bioformats

@Override
public void setId(String id) throws FormatException, IOException {
 if (id.equals(currentId)) return;
 super.setId(id);
 if (imageLocations == null) {
  MetadataRetrieve r = getMetadataRetrieve();
  imageLocations = new String[r.getImageCount()][];
  for (int i=0; i<imageLocations.length; i++) {
   setSeries(i);
   imageLocations[i] = new String[planeCount()];
  }
  setSeries(0);
 }
}
origin: openmicroscopy/bioformats

/**
 * Saves the given image to the specified (possibly already open) file.
 * The IFD hashtable allows specification of TIFF parameters such as bit
 * depth, compression and units.
 */
public void saveBytes(int no, byte[] buf, IFD ifd)
 throws IOException, FormatException
{
 int w = getSizeX();
 int h = getSizeY();
 saveBytes(no, buf, ifd, 0, 0, w, h);
}
origin: openmicroscopy/bioformats

/**
 * @see loci.formats.IFormatWriter#saveBytes(int, byte[], int, int, int, int)
 */
@Override
public void saveBytes(int no, byte[] buf, int x, int y, int w, int h)
 throws FormatException, IOException
{
 saveBytes(no, buf, null, x, y, w, h);
}
origin: ome/formats-bsd

@Override
public int getPlaneCount() {
 return getPlaneCount(series);
}
origin: openmicroscopy/bioformats

@Override
public boolean isThisType(String name) {
 if (!super.isThisType(name)) {
  return false;
 }
 if (resolutionData.size() > 0) {
  return true;
 }
 MetadataRetrieve r = getMetadataRetrieve();
 if (!(r instanceof IPyramidStore)) {
  return false;
 }
 return ((IPyramidStore) r).getResolutionCount(0) > 1;
}
origin: ome/formats-gpl

/**
 * @see loci.formats.IFormatWriter#saveBytes(int, byte[], int, int, int, int)
 */
@Override
public void saveBytes(int no, byte[] buf, int x, int y, int w, int h)
 throws FormatException, IOException
{
  // always save to full image
  saveBytes(no, buf);
}

origin: openmicroscopy/bioformats

private int crc(byte[] buf) {
 return crc(buf, 0, buf.length);
}
origin: ome/formats-gpl

/**
 * @see loci.formats.IFormatWriter#saveBytes(int, byte[], int, int, int, int)
 */
@Override
public void saveBytes(int no, byte[] buf, int x, int y, int w, int h)
 throws FormatException, IOException
{
 if(wlz != null) {
  checkParams(no, buf, x, y, w, h);
  wlz.saveBytes(no, buf, x, y, w, h);
 }
}
loci.formats.out

Most used classes

  • TiffWriter
    TiffWriter is the file format writer for TIFF files.
  • OMETiffWriter
    OMETiffWriter is the file format writer for OME-TIFF files.
  • JPEG2000Writer
    JPEG2000Writer is the file format writer for JPEG2000 files.
  • PyramidOMETiffWriter
    PyramidOMETiffWriter is the file format writer for pyramid OME-TIFF files.
  • APNGWriter
    APNGWriter is the file format writer for PNG and APNG files.
  • CellH5Writer,
  • EPSWriter,
  • ICSWriter,
  • ImageIOWriter,
  • JavaWriter,
  • LegacyQTWriter,
  • OMEXMLWriter$OMEHandler,
  • OMEXMLWriter,
  • QTWriter,
  • V3DrawWriter,
  • WlzWriter
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