Friday, September 08, 2006

Frustrated...

Ah... who can help me... Frustrated to see that damn problem in my project...

The dicom module, which was suppose to read dicom images, was acting kinda strangely enough.

 

Since my actual data taken from hospital was slightly large (>10mb per image), I usually use dummy data fetch from the internet for testing and debug purpose. The test data seems fine enough, and I've manage to display the image (including a *sort of* 3D reconstruction object)

 

The odd thing is, of 2 sets of real data that I obtained, 1 of them is unabled to show up perfectly. Checking here and there confirms that the I've extract the image data perfectly from dicom, and I even found someway to improve the performance as well. But just for some reason it just dun wanna display correctly on screen (showing up jagged image)

 

So, I turn to check the display functions. Changing from OpenGL functions back to GDI functions (since it's 2D), I check, try to manipulate the data a bit here and there, but yet the result is the same... Haii... for a week, I've keep seeing the same coding again and again.... all with no vain...

 

Untill...

 

I was playing around the variables around my display functions. I exchanged the image's witdh and image height. Binbong! It display nicely! Omg... A quick check shows that I've mistakenly decode the image's width and height wrongly.... What about the test data that seems ok? It's because for those data, their image width and height is the same (which makes no difference if they're swapped)

 

Dunno what to say... Just wanna hang myself for frustrated because of just 2 variables...

No comments: