FNNDSC / FNNDSC/ami

Wrong behavior in mergeSeries

Open
#275 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
745
Forks
212
PR merge metrics
No merged PRs in 30d

Description

### Description
I have a CT series with 67 frames.
First frame in series
![image](https://user-images.githubusercontent.com/26387367/38673926-6df3bfb0-3e5b-11e8-9d4e-03c3f39f0049.png)
is in axial projection and shows how slices was made by machine (each ~horizontal line on this picture equal to one frame in series).
All other frames are in coronal projection.
Size of info frame is smaller then all other frames, so: packTo8Bits() crushes with:
> TypeError: Cannot read property 'pixelData' of undefined

#### Files
[broken series - info frame.zip](https://github.com/FNNDSC/ami/files/1902829/broken.series.-.info.frame.zip)
[broken series - normal frame.zip](https://github.com/FNNDSC/ami/files/1902830/broken.series.-.normal.frame.zip)

#### Expected Results
These frames shouldn't be merged into one stack, because their frame.rows and frame.columns are different. DICOM tag (0008,0008) ImageType is also different.

### Versions
- AMI: v0.0.23dev

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.