cornerstoneTools icon indicating copy to clipboard operation
cornerstoneTools copied to clipboard

doesn't work Stack Image Position Offset Synchronizer Tool except CT, MR

Open ofleaf opened this issue 7 years ago • 3 comments

I using stack image position offset synchronizer tool. When I load MR or CT image it works. But when I load another modality image, syncing will not take effect.

I tried debugging, MR and CT images were successfully entered into the stack list, but other images were failed.

ofleaf avatar Dec 17 '18 07:12 ofleaf

Can you share a repository that demonstrates this issue, or a codepen?

dannyrb avatar Dec 17 '18 14:12 dannyrb

Hi Danny, thanks for reply

I uploaded test source.

https://github.com/ofleaf/cornerstone-demo

You can run using npm run dev and load test image files you can find /src/assets/image folder.

That's ES modality and I checked it doesn't works about synchronizer tool.

2018년 12월 17일 (월) 오후 11:30, Danny Brown [email protected]님이 작성:

Can you share a repository that demonstrates this issue, or a codepen?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cornerstonejs/cornerstoneTools/issues/754#issuecomment-447865104, or mute the thread https://github.com/notifications/unsubscribe-auth/AKAXcGtSfni3O4gL3eVU5h25Ss0jXkAQks5u56p4gaJpZM4ZV0AG .

ofleaf avatar Dec 18 '18 08:12 ofleaf

It looks like your DICOM images don't have imagePositionPatient:

  • https://github.com/cornerstonejs/cornerstoneTools/blob/master/src/synchronization/stackImagePositionOffsetSynchronizer.js#L46-L51

Tested here: https://rawgit.com/cornerstonejs/dicomParser/master/examples/dumpWithDataDictionary/index.html

The event you're using for your synchronizer should probably be: cornerstoneimagerendered

dannyrb avatar Jul 11 '19 16:07 dannyrb