2018.06.06 06:43 "[Tiff] Adding bunch of numerical data to tiff image", by Bhaskar Reddy

2018.06.06 13:57 "Re: [Tiff] Adding bunch of numerical data to tiff image", by Kemp Watson

Or, more generally, if Rob¹s guess is correct, one new IFD as: make a channel for each array of data points, and each channel of an appropriate bit depth for the data represented. Or, separate grayscale image IFDs for each data array.

Kemp

From: <tiff-bounces@lists.maptools.org> on behalf of Bhaskar Reddy

<reddy.baskar0605@gmail.com>

Yeah, that's a good idea Rob.

Do you have sample link/code for array of 16 bit grayscale image?

On Wed, Jun 6, 2018, 2:41 AM Rob Tillaart <rob.tillaart@gmail.com> wrote:

just wondering,

Is every value related to a pixel (tile row column) in the image? if so you could always create a 16 bit grayscale image to hold the array.

>

Rob

On Wed, Jun 6, 2018 at 8:51 AM Bhaskar Reddy <reddy.baskar0605@gmail.com> wrote:

I am trying to add data [200,8,205,10,300,6,250,5, ........................300,6,350,4] but not able to.

Is there any way to add a bunch of integers to Tiff image as Tiff tag?

>> Example:

value= [200,8,205,10,300,6,250,5, ........................300,6,350,4] TIFFSetField(tif,TIFFTAG_T02, value)

static const TIFFFieldInfo textfields[]={
{ TIFFTAG_T02, 1, 1, TIFF_LONG, FIELD_CUSTOM, 0, 0, "text02"},
};