diff --git a/tests/gen_seq_images.py b/tests/gen_seq_images.py deleted file mode 100644 index 6a44da2..0000000 --- a/tests/gen_seq_images.py +++ /dev/null @@ -1,540 +0,0 @@ -#!/usr/bin/env python3 -"""Generate sequential-value TIFF test images for bit-error detection. - -Uses manual TIFF structure writing to produce packed-sample images at -non-standard bit depths. Each image contains pixel values cycling 0..max, -so any bit-level decode error changes the checksum. - -Images are 16x16 (256 pixels per channel). - -Output: tests/images/seq-*.tiff + Rust test functions printed to stdout. -""" - -import numpy as np -import struct -import os -from pathlib import Path - -OUTDIR = Path(__file__).parent / "images" -OUTDIR.mkdir(exist_ok=True) - -W, H = 16, 16 -NPIX = W * H # 256 pixels per channel - - -def sequential_values(max_val, count): - """Generate cycling sequential values 0..max_val.""" - return [i % (max_val + 1) for i in range(count)] - - -def compute_sum(values): - """Compute checksum as sum of all sample values.""" - return sum(values) - - -def pack_bits(values, bits, width): - """Pack values into MSB-first bit stream, row by row. - - Each row is packed independently and padded to a byte boundary, - matching TIFF strip/row semantics. - """ - height = len(values) // width - all_bytes = bytearray() - for y in range(height): - row_vals = values[y * width:(y + 1) * width] - bit_buf = 0 - bit_count = 0 - for v in row_vals: - bit_buf = (bit_buf << bits) | v - bit_count += bits - while bit_count >= 8: - bit_count -= 8 - all_bytes.append((bit_buf >> bit_count) & 0xFF) - if bit_count > 0: - all_bytes.append((bit_buf << (8 - bit_count)) & 0xFF) - return bytes(all_bytes) - - -def pack_bits_multichannel_contig(values, bits, width, channels): - """Pack interleaved multichannel data: RGBRGBRGB... - - values is a flat list of length width*height*channels, already interleaved. - Rows are packed independently. - """ - height = len(values) // (width * channels) - all_bytes = bytearray() - for y in range(height): - start = y * width * channels - row_vals = values[start:start + width * channels] - bit_buf = 0 - bit_count = 0 - for v in row_vals: - bit_buf = (bit_buf << bits) | v - bit_count += bits - while bit_count >= 8: - bit_count -= 8 - all_bytes.append((bit_buf >> bit_count) & 0xFF) - if bit_count > 0: - all_bytes.append((bit_buf << (8 - bit_count)) & 0xFF) - return bytes(all_bytes) - - -def pack_bits_planar(values, bits, width, height, channels): - """Pack planar data: all R samples, then all G, then all B. - - values is a flat list of length width*height*channels. - First width*height are channel 0, next are channel 1, etc. - Each plane's rows are packed independently. - - Returns (bytes, plane_sizes) where plane_sizes is a list of byte counts per plane. - """ - plane_size = width * height - all_bytes = bytearray() - plane_byte_sizes = [] - for c in range(channels): - plane = values[c * plane_size:(c + 1) * plane_size] - plane_bytes = pack_bits(plane, bits, width) - plane_byte_sizes.append(len(plane_bytes)) - all_bytes.extend(plane_bytes) - return bytes(all_bytes), plane_byte_sizes - - -def apply_horizontal_predictor(values, bits, width): - """Apply TIFF horizontal differencing predictor. - - For each row, first sample is unchanged, subsequent samples become - (current - previous) mod 2^bits. - """ - height = len(values) // width - mod = 1 << bits - result = list(values) - for y in range(height): - for x in range(width - 1, 0, -1): - idx = y * width + x - result[idx] = (result[idx] - result[idx - 1]) % mod - return result - - -def apply_horizontal_predictor_rgb(values, bits, width, channels): - """Apply horizontal predictor for interleaved RGB data.""" - height = len(values) // (width * channels) - mod = 1 << bits - result = list(values) - stride = width * channels - for y in range(height): - row_start = y * stride - # Work backwards to avoid overwriting values we still need - for x in range(width - 1, 0, -1): - for c in range(channels): - idx = row_start + x * channels + c - prev = row_start + (x - 1) * channels + c - result[idx] = (result[idx] - result[prev]) % mod - return result - - -def write_tiff(path, raw_data, width, height, bits, photometric=1, - samples_per_pixel=1, planar=False, predictor=1, - plane_sizes=None): - """Write a valid TIFF file with precise IFD structure. - - photometric: 0=WhiteIsZero, 1=BlackIsZero, 2=RGB - plane_sizes: list of byte sizes per plane (for planar images) - """ - # For planar images, we need separate strips per plane - if planar and samples_per_pixel > 1: - num_strips = samples_per_pixel - if plane_sizes is None: - plane_size = len(raw_data) // samples_per_pixel - plane_sizes = [plane_size] * samples_per_pixel - else: - num_strips = 1 - plane_sizes = [len(raw_data)] - - # Collect IFD entries as (tag, type_id, count, inline_or_None, offset_data_or_None) - # We'll resolve offsets in a second pass - entries = [] - - def add_short(tag, value): - entries.append((tag, 3, 1, value, None)) - - add_short(256, width) # ImageWidth - add_short(257, height) # ImageLength - add_short(259, 1) # Compression = None - add_short(262, photometric) # PhotometricInterpretation - add_short(278, height) # RowsPerStrip = all rows - add_short(296, 1) # ResolutionUnit = None - - if samples_per_pixel > 1: - add_short(277, samples_per_pixel) # SamplesPerPixel - add_short(284, 2 if planar else 1) # PlanarConfiguration - - if predictor > 1: - add_short(317, predictor) # Predictor - - # These need offset data; will be filled in during layout - # Use sentinel tag numbers, actual entries added below - entries.sort(key=lambda e: e[0]) - - # Now compute layout - # We need to know all entries to compute IFD size - # Extra entries: BitsPerSample(258), StripOffsets(273), StripByteCounts(279), - # XResolution(282), YResolution(283) - total_entries = len(entries) + 5 - - ifd_offset = 8 - ifd_size = 2 + total_entries * 12 + 4 - - extra_start = ifd_offset + ifd_size - extra = bytearray() - - # BitsPerSample - if samples_per_pixel > 1: - bps_offset = extra_start + len(extra) - for _ in range(samples_per_pixel): - extra.extend(struct.pack(' + * + * Compile: cc -O2 -o gen_seq_tiff gen_seq_tiff.c -ltiff -lm + */ + +#include +#include +#include +#include +#include + +#define W 16 +#define H 16 +#define NPIX (W * H) + +/* Pack a single sample value into an MSB-first bit stream at the given bit offset. */ +static void pack_value(uint8_t *buf, int *bit_offset, uint32_t val, int bits) +{ + /* Write bits MSB-first */ + for (int i = bits - 1; i >= 0; i--) { + int byte_idx = *bit_offset / 8; + int bit_in_byte = *bit_offset % 8; + if ((val >> i) & 1) + buf[byte_idx] |= (uint8_t)(0x80 >> bit_in_byte); + (*bit_offset)++; + } +} + +/* Write a single-channel grayscale TIFF with N-bit packed samples. + * libtiff expects packed MSB-first data for all non-standard bit depths. */ +static int write_gray(const char *path, int bits, + uint16_t photometric, uint16_t predictor) +{ + TIFF *tif = TIFFOpen(path, "w"); + if (!tif) { fprintf(stderr, "Cannot open %s\n", path); return -1; } + + TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, W); + TIFFSetField(tif, TIFFTAG_IMAGELENGTH, H); + TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1); + TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits); + TIFFSetField(tif, TIFFTAG_SAMPLEFORMAT, SAMPLEFORMAT_UINT); + TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, photometric); + TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE); + TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG); + TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, H); + if (predictor != PREDICTOR_NONE) + TIFFSetField(tif, TIFFTAG_PREDICTOR, predictor); + + uint32_t max_val = (1u << bits) - 1; + tsize_t scanline_size = TIFFScanlineSize(tif); + uint8_t *buf = (uint8_t *)_TIFFmalloc(scanline_size); + if (!buf) { TIFFClose(tif); return -1; } + + for (int y = 0; y < H; y++) { + memset(buf, 0, scanline_size); + int bit_offset = 0; + + for (int x = 0; x < W; x++) { + uint32_t val = (y * W + x) % (max_val + 1); + /* For WhiteIsZero, store inverted values (decoder will invert back) */ + if (photometric == PHOTOMETRIC_MINISWHITE) + val = max_val - val; + pack_value(buf, &bit_offset, val, bits); + } + + if (TIFFWriteScanline(tif, buf, y, 0) < 0) { + fprintf(stderr, "Error writing scanline %d to %s\n", y, path); + _TIFFfree(buf); + TIFFClose(tif); + return -1; + } + } + + _TIFFfree(buf); + TIFFClose(tif); + return 0; +} + +/* Write a 3-channel RGB TIFF with N-bit packed samples, contiguous layout. */ +static int write_rgb_contig(const char *path, int bits) +{ + TIFF *tif = TIFFOpen(path, "w"); + if (!tif) { fprintf(stderr, "Cannot open %s\n", path); return -1; } + + TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, W); + TIFFSetField(tif, TIFFTAG_IMAGELENGTH, H); + TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 3); + TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits); + TIFFSetField(tif, TIFFTAG_SAMPLEFORMAT, SAMPLEFORMAT_UINT); + TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_RGB); + TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE); + TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG); + TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, H); + + uint32_t max_val = (1u << bits) - 1; + tsize_t scanline_size = TIFFScanlineSize(tif); + uint8_t *buf = (uint8_t *)_TIFFmalloc(scanline_size); + if (!buf) { TIFFClose(tif); return -1; } + + for (int y = 0; y < H; y++) { + memset(buf, 0, scanline_size); + int bit_offset = 0; + + for (int x = 0; x < W; x++) { + for (int c = 0; c < 3; c++) { + uint32_t idx = (y * W + x) * 3 + c; + uint32_t val = idx % (max_val + 1); + pack_value(buf, &bit_offset, val, bits); + } + } + + if (TIFFWriteScanline(tif, buf, y, 0) < 0) { + fprintf(stderr, "Error writing scanline %d to %s\n", y, path); + _TIFFfree(buf); + TIFFClose(tif); + return -1; + } + } + + _TIFFfree(buf); + TIFFClose(tif); + return 0; +} + +/* Write a 3-channel RGB TIFF with N-bit packed samples, planar (separate) layout. */ +static int write_rgb_planar(const char *path, int bits) +{ + TIFF *tif = TIFFOpen(path, "w"); + if (!tif) { fprintf(stderr, "Cannot open %s\n", path); return -1; } + + TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, W); + TIFFSetField(tif, TIFFTAG_IMAGELENGTH, H); + TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 3); + TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits); + TIFFSetField(tif, TIFFTAG_SAMPLEFORMAT, SAMPLEFORMAT_UINT); + TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_RGB); + TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE); + TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_SEPARATE); + TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, H); + + uint32_t max_val = (1u << bits) - 1; + tsize_t scanline_size = TIFFScanlineSize(tif); + uint8_t *buf = (uint8_t *)_TIFFmalloc(scanline_size); + if (!buf) { TIFFClose(tif); return -1; } + + for (int s = 0; s < 3; s++) { + for (int y = 0; y < H; y++) { + memset(buf, 0, scanline_size); + int bit_offset = 0; + + for (int x = 0; x < W; x++) { + /* Plane 0: cycling 0..max, plane 1: +100, plane 2: +200 */ + uint32_t val = ((y * W + x) + s * 100) % (max_val + 1); + pack_value(buf, &bit_offset, val, bits); + } + + if (TIFFWriteScanline(tif, buf, y, (uint16_t)s) < 0) { + fprintf(stderr, "Error writing scanline %d plane %d to %s\n", + y, s, path); + _TIFFfree(buf); + TIFFClose(tif); + return -1; + } + } + } + + _TIFFfree(buf); + TIFFClose(tif); + return 0; +} + +int main(int argc, char **argv) +{ + if (argc < 2) { + fprintf(stderr, "Usage: %s \n", argv[0]); + return 1; + } + + const char *dir = argv[1]; + char path[512]; + int ok = 1; + + printf("Generating libtiff test images in %s/\n\n", dir); + + /* Sub-byte BlackIsZero */ + int subbyte_biz[] = {3, 5, 7}; + for (int i = 0; i < 3; i++) { + int b = subbyte_biz[i]; + snprintf(path, sizeof(path), "%s/seq-1c-%db.tiff", dir, b); + if (write_gray(path, b, PHOTOMETRIC_MINISBLACK, PREDICTOR_NONE) == 0) + printf(" OK seq-1c-%db.tiff\n", b); + else { printf(" FAIL seq-1c-%db.tiff\n", b); ok = 0; } + } + + /* Sub-byte WhiteIsZero */ + int subbyte_wiz[] = {3, 5, 6, 7}; + for (int i = 0; i < 4; i++) { + int b = subbyte_wiz[i]; + snprintf(path, sizeof(path), "%s/seq-1c-%db-miniswhite.tiff", dir, b); + if (write_gray(path, b, PHOTOMETRIC_MINISWHITE, PREDICTOR_NONE) == 0) + printf(" OK seq-1c-%db-miniswhite.tiff\n", b); + else { printf(" FAIL seq-1c-%db-miniswhite.tiff\n", b); ok = 0; } + } + + /* Extended BlackIsZero */ + int ext_bits[] = {10, 12, 14, 24}; + for (int i = 0; i < 4; i++) { + int b = ext_bits[i]; + snprintf(path, sizeof(path), "%s/seq-1c-%db.tiff", dir, b); + if (write_gray(path, b, PHOTOMETRIC_MINISBLACK, PREDICTOR_NONE) == 0) + printf(" OK seq-1c-%db.tiff\n", b); + else { printf(" FAIL seq-1c-%db.tiff\n", b); ok = 0; } + } + + /* Extended WhiteIsZero */ + for (int i = 0; i < 4; i++) { + int b = ext_bits[i]; + snprintf(path, sizeof(path), "%s/seq-1c-%db-miniswhite.tiff", dir, b); + if (write_gray(path, b, PHOTOMETRIC_MINISWHITE, PREDICTOR_NONE) == 0) + printf(" OK seq-1c-%db-miniswhite.tiff\n", b); + else { printf(" FAIL seq-1c-%db-miniswhite.tiff\n", b); ok = 0; } + } + + /* Extended HPredict — libtiff may not support predictor for packed non-standard depths. + * Try it and report failure gracefully. */ + for (int i = 0; i < 4; i++) { + int b = ext_bits[i]; + snprintf(path, sizeof(path), "%s/seq-1c-%db-hpredict.tiff", dir, b); + if (write_gray(path, b, PHOTOMETRIC_MINISBLACK, PREDICTOR_HORIZONTAL) == 0) + printf(" OK seq-1c-%db-hpredict.tiff\n", b); + else { printf(" FAIL seq-1c-%db-hpredict.tiff (may not be supported)\n", b); } + } + + /* RGB Contiguous */ + for (int i = 0; i < 4; i++) { + int b = ext_bits[i]; + snprintf(path, sizeof(path), "%s/seq-3c-%db-contig.tiff", dir, b); + if (write_rgb_contig(path, b) == 0) + printf(" OK seq-3c-%db-contig.tiff\n", b); + else { printf(" FAIL seq-3c-%db-contig.tiff\n", b); ok = 0; } + } + + /* RGB Planar */ + for (int i = 0; i < 4; i++) { + int b = ext_bits[i]; + snprintf(path, sizeof(path), "%s/seq-3c-%db-planar.tiff", dir, b); + if (write_rgb_planar(path, b) == 0) + printf(" OK seq-3c-%db-planar.tiff\n", b); + else { printf(" FAIL seq-3c-%db-planar.tiff\n", b); ok = 0; } + } + + printf("\nDone. %s\n", ok ? "All succeeded." : "Some failed!"); + return ok ? 0 : 1; +} diff --git a/tests/images/seq-1c-10b-hpredict.tiff b/tests/images/seq-1c-10b-hpredict.tiff index a74e1a6..1553c9a 100644 Binary files a/tests/images/seq-1c-10b-hpredict.tiff and b/tests/images/seq-1c-10b-hpredict.tiff differ diff --git a/tests/images/seq-1c-10b-miniswhite.tiff b/tests/images/seq-1c-10b-miniswhite.tiff index f3f7a7b..95536e9 100644 Binary files a/tests/images/seq-1c-10b-miniswhite.tiff and b/tests/images/seq-1c-10b-miniswhite.tiff differ diff --git a/tests/images/seq-1c-10b.tiff b/tests/images/seq-1c-10b.tiff index 03089ef..1553c9a 100644 Binary files a/tests/images/seq-1c-10b.tiff and b/tests/images/seq-1c-10b.tiff differ diff --git a/tests/images/seq-1c-12b-hpredict.tiff b/tests/images/seq-1c-12b-hpredict.tiff index d73b199..8e588b6 100644 Binary files a/tests/images/seq-1c-12b-hpredict.tiff and b/tests/images/seq-1c-12b-hpredict.tiff differ diff --git a/tests/images/seq-1c-12b-miniswhite.tiff b/tests/images/seq-1c-12b-miniswhite.tiff index 4684ffe..0fb0453 100644 Binary files a/tests/images/seq-1c-12b-miniswhite.tiff and b/tests/images/seq-1c-12b-miniswhite.tiff differ diff --git a/tests/images/seq-1c-12b.tiff b/tests/images/seq-1c-12b.tiff index 87c0c37..8e588b6 100644 Binary files a/tests/images/seq-1c-12b.tiff and b/tests/images/seq-1c-12b.tiff differ diff --git a/tests/images/seq-1c-14b-hpredict.tiff b/tests/images/seq-1c-14b-hpredict.tiff index 2014010..ad5bf09 100644 Binary files a/tests/images/seq-1c-14b-hpredict.tiff and b/tests/images/seq-1c-14b-hpredict.tiff differ diff --git a/tests/images/seq-1c-14b-miniswhite.tiff b/tests/images/seq-1c-14b-miniswhite.tiff index c053514..4e5cdfc 100644 Binary files a/tests/images/seq-1c-14b-miniswhite.tiff and b/tests/images/seq-1c-14b-miniswhite.tiff differ diff --git a/tests/images/seq-1c-14b.tiff b/tests/images/seq-1c-14b.tiff index f1b8297..ad5bf09 100644 Binary files a/tests/images/seq-1c-14b.tiff and b/tests/images/seq-1c-14b.tiff differ diff --git a/tests/images/seq-1c-24b-hpredict.tiff b/tests/images/seq-1c-24b-hpredict.tiff index d432951..f3a250e 100644 Binary files a/tests/images/seq-1c-24b-hpredict.tiff and b/tests/images/seq-1c-24b-hpredict.tiff differ diff --git a/tests/images/seq-1c-24b-miniswhite.tiff b/tests/images/seq-1c-24b-miniswhite.tiff index f4c6fdd..47902a2 100644 Binary files a/tests/images/seq-1c-24b-miniswhite.tiff and b/tests/images/seq-1c-24b-miniswhite.tiff differ diff --git a/tests/images/seq-1c-24b.tiff b/tests/images/seq-1c-24b.tiff index 02d0760..f3a250e 100644 Binary files a/tests/images/seq-1c-24b.tiff and b/tests/images/seq-1c-24b.tiff differ diff --git a/tests/images/seq-1c-3b-miniswhite.tiff b/tests/images/seq-1c-3b-miniswhite.tiff index 33756be..b4c2c6b 100644 Binary files a/tests/images/seq-1c-3b-miniswhite.tiff and b/tests/images/seq-1c-3b-miniswhite.tiff differ diff --git a/tests/images/seq-1c-3b.tiff b/tests/images/seq-1c-3b.tiff index 40d959c..ac08203 100644 Binary files a/tests/images/seq-1c-3b.tiff and b/tests/images/seq-1c-3b.tiff differ diff --git a/tests/images/seq-1c-5b-miniswhite.tiff b/tests/images/seq-1c-5b-miniswhite.tiff index fca7239..210cabc 100644 Binary files a/tests/images/seq-1c-5b-miniswhite.tiff and b/tests/images/seq-1c-5b-miniswhite.tiff differ diff --git a/tests/images/seq-1c-5b.tiff b/tests/images/seq-1c-5b.tiff index 3e5ba67..b3faa00 100644 Binary files a/tests/images/seq-1c-5b.tiff and b/tests/images/seq-1c-5b.tiff differ diff --git a/tests/images/seq-1c-6b-miniswhite.tiff b/tests/images/seq-1c-6b-miniswhite.tiff index 80401c0..f7e91b8 100644 Binary files a/tests/images/seq-1c-6b-miniswhite.tiff and b/tests/images/seq-1c-6b-miniswhite.tiff differ diff --git a/tests/images/seq-1c-7b-miniswhite.tiff b/tests/images/seq-1c-7b-miniswhite.tiff index 110b542..4753443 100644 Binary files a/tests/images/seq-1c-7b-miniswhite.tiff and b/tests/images/seq-1c-7b-miniswhite.tiff differ diff --git a/tests/images/seq-1c-7b.tiff b/tests/images/seq-1c-7b.tiff index d49e153..733f954 100644 Binary files a/tests/images/seq-1c-7b.tiff and b/tests/images/seq-1c-7b.tiff differ diff --git a/tests/images/seq-3c-10b-contig.tiff b/tests/images/seq-3c-10b-contig.tiff index e339b64..5093c23 100644 Binary files a/tests/images/seq-3c-10b-contig.tiff and b/tests/images/seq-3c-10b-contig.tiff differ diff --git a/tests/images/seq-3c-10b-planar.tiff b/tests/images/seq-3c-10b-planar.tiff index ca530e1..8d9fb47 100644 Binary files a/tests/images/seq-3c-10b-planar.tiff and b/tests/images/seq-3c-10b-planar.tiff differ diff --git a/tests/images/seq-3c-12b-contig.tiff b/tests/images/seq-3c-12b-contig.tiff index bb94c18..6c19ffe 100644 Binary files a/tests/images/seq-3c-12b-contig.tiff and b/tests/images/seq-3c-12b-contig.tiff differ diff --git a/tests/images/seq-3c-12b-planar.tiff b/tests/images/seq-3c-12b-planar.tiff index a9650c0..926576b 100644 Binary files a/tests/images/seq-3c-12b-planar.tiff and b/tests/images/seq-3c-12b-planar.tiff differ diff --git a/tests/images/seq-3c-14b-contig.tiff b/tests/images/seq-3c-14b-contig.tiff index 16c6a54..2abbf27 100644 Binary files a/tests/images/seq-3c-14b-contig.tiff and b/tests/images/seq-3c-14b-contig.tiff differ diff --git a/tests/images/seq-3c-14b-planar.tiff b/tests/images/seq-3c-14b-planar.tiff index aa8620e..1b9fc08 100644 Binary files a/tests/images/seq-3c-14b-planar.tiff and b/tests/images/seq-3c-14b-planar.tiff differ diff --git a/tests/images/seq-3c-24b-contig.tiff b/tests/images/seq-3c-24b-contig.tiff index 1d26538..674c266 100644 Binary files a/tests/images/seq-3c-24b-contig.tiff and b/tests/images/seq-3c-24b-contig.tiff differ diff --git a/tests/images/seq-3c-24b-planar.tiff b/tests/images/seq-3c-24b-planar.tiff index 618ba35..1385467 100644 Binary files a/tests/images/seq-3c-24b-planar.tiff and b/tests/images/seq-3c-24b-planar.tiff differ