Test mono / color images (WIP)

This commit is contained in:
nicolo committed 2024-12-27 16:26:52 +01:00
1 parent 19df4cc926
commit 5e4180a4a2
6 files changed
+19640 -3

No files matched your search

+11
View File
@@ -28,6 +28,17 @@ final class ImageBlobTest extends TestCase
{
$this->assertSame($this->imageBlob->dataBits, 16*2448*1669*3);
}
public function testIsColor(): void
{
$mono = new Dumbastro\FitsPhp\Fits(__DIR__ . '/test_mono.fit');
$imageBlob = new Dumbastro\FitsPhp\ImageBlob($mono->header(), $mono->imageBlob);
$this->assertFalse($imageBlob->isColor);
$this->assertTrue($this->imageBlob->isColor);
$this->assertEquals($imageBlob->naxis3, 1);
}
}