Discussion:
[mitk-users] Segmentation shift
Nil Goyette
2017-06-20 18:04:32 UTC
Permalink
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 Loading Image... 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
Dinkelacker, Stefan
2017-06-21 07:40:39 UTC
Permalink
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 <***@imeka.ca>
Gesendet: Dienstag, 20. Juni 2017 20:04
An: mitk-***@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-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users
Nil Goyette
2017-06-21 17:06:01 UTC
Permalink
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
Post by Dinkelacker, Stefan
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
________________________________________
Gesendet: Dienstag, 20. Juni 2017 20:04
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
Continue reading on narkive:
Loading...