Test mono / color images (WIP)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
2
tests/test_m52.fit
Normal file
2
tests/test_m52.fit
Normal file
File diff suppressed because one or more lines are too long
BIN
tests/test_mono.fit
Normal file
BIN
tests/test_mono.fit
Normal file
Binary file not shown.
19607
tests/test_orion_8bit.fit
Normal file
19607
tests/test_orion_8bit.fit
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user