Hi Stefan,

Ouch, I now have second thoughts on fixing this! No, seriously, I'll try it anyway but I do start with a less-than-positive attitude ;) I'm not sure it's the same bug though. The visual is different. I can reinit then rotate the axis as much as I want and it's ok. If I do a Global Reinit though, I do have the bug.

I checked in PaintbrushTool::MouseMoved, there's this snippet which surprised me:

Point3D worldCoordinates = positionEvent->GetPositionInWorld();
Point3D indexCoordinates;
m_WorkingSlice->GetGeometry()->WorldToIndex(worldCoordinates, indexCoordinates);
MITK_DEBUG << "Mouse at W " << worldCoordinates << std::endl;
MITK_DEBUG << "Mouse at I " << indexCoordinates << std::endl;

*Reinited or not*, the world coordinates are always what I think they will be, but the index coordinates look totally random. One of the index is ~0.0 because it's a plane but the 2 others... I thought it would be the same data as in my status bar "Position: <>; Index: <>" but it's not, far from it. Should the indices be the equal? Where are these "random" indices coming from?

Nil

Le 2017-06-21 à 03:40, Dinkelacker, Stefan a écrit :
Hi,

this may also have something to do with [1]? Make sure to click on "Show older 
changes" to see all the comments and example images/animations.

Best,
Stefan

[1] https://phabricator.mitk.org/T18776
________________________________________
Von: Nil Goyette <nil.goye...@imeka.ca>
Gesendet: Dienstag, 20. Juni 2017 20:04
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] Segmentation shift

Hi all,

My boss asked me to let the users decide if they want to reinit or not.
They will live with the consequence of not being aligned if they don't.
Of course I found this http://i.imgur.com/GKGKwmV.png I know this is a
well-known bug and it has been repaired in
https://phabricator.mitk.org/T22619 but I have a question about this bug.

Does anyone know why there's a shift and/or how it could be repaired? I
mean, without a reinit, of course. I plan to fix it myself and it would
help me if someone gives me some hints. Thank you for your time.

Nil
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to