Table of Contents

Class TiffWriter<TColor, TDepth>

Namespace
Emgu.CV.Tiff
Assembly
Emgu.CV.dll

A class that can be used for writing geotiff

public class TiffWriter<TColor, TDepth> : UnmanagedObject, IDisposable where TColor : struct, IColor where TDepth : new()

Type Parameters

TColor

The color type of the image to be written

TDepth

The depth type of the image to be written

Inheritance
TiffWriter<TColor, TDepth>
Implements
Derived
Inherited Members

Constructors

TiffWriter(string)

Create a tiff writer to save an image

public TiffWriter(string fileName)

Parameters

fileName string

The file name to be saved

Methods

DisposeObject()

Release the writer and write all data on to disk.

protected override void DisposeObject()

WriteGeoTag(double[], double[])

Write the geo information into the tiff file

public void WriteGeoTag(double[] modelTiepoint, double[] modelPixelScale)

Parameters

modelTiepoint double[]

Model Tie Point, an array of size 6

modelPixelScale double[]

Model pixel scale, an array of size 3

WriteImage(Image<TColor, TDepth>)

Write the image to the tiff file

public virtual void WriteImage(Image<TColor, TDepth> image)

Parameters

image Image<TColor, TDepth>

The image to be written