View in #ohif on Slack
@Wen_XiaoXin: jumpToCenter is not working in new segmentation mode.
I think centroid is not being calculated for dynamically created segmentations.
Can you please let me know if you have plan to fix this issue? @Alireza_Sedghi
@Alireza_Sedghi: no it is not
that is expensive
we will add webworker api soon
@Wen_XiaoXin: that webworker api will work like a cronjob?
@Alireza_Sedghi: but until then something we can (you can) do is basically, before jumping checking if the segmentation is “dirty”
if it is , re-calculate
if not use the previous jumps
@Wen_XiaoXin: I think there’s a public method
calculateCentroids , can I call this method?
I added the method
but it should not be called always
just say before they want to jump
and save somewhere
but any segmentation_data_modified
should make it dirty
so to recalculate
@Wen_XiaoXin: yeah, I think we should recalculate every time we click the segment row
@Alireza_Sedghi: and that is also UI blocking
so you should show some loading progress bar as well
@Wen_XiaoXin: ok, thanks for your information
it’s another question, but can you please let me know how I can integrate nifti loader?
@Alireza_Sedghi: that would be hard since OHIF requires metadata
but on the roadmap
maybe we do BIDS
you can read here
#3492 [EPIC] Nifti Support