Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Processing - Enhancement, Plz HELP!!

Status
Not open for further replies.

anameofarose

Computer
Feb 9, 2005
1
hiiii,
i'm working on a project that involves dealing with xrays, I can't find a suitable enough function in matlab that would enhance dental x rays as it should be. i have to distinguish between graylevels of gumline and root of the tooth to be able to detect or find contour of teeth.

Thanks in advance.
 
Replies continue below

Recommended for you

Hi,
What I did once is to make a copy of imadjdemo.m (Image processing toolbox) and change it for my needs. This allow for interactive change of histogram, brightness and gamma until you get the best results. You can get out the final parameters for use in imadjust function for other images of the same type.
To accomplish this task open the original function:

>> open imadjdemo % assuming it's on your Matlab path. Or:
open(which('imadjdemo'))

Use file -> saveas of the debugger to keep a copy named say,'interactiveEdjust'.

Go to line 262 (on the version I have) and change the images list of ud.hImgPop object to the names of your images files (few typical).

Go to line 956 (that's in LoadNewImage subroutine) and change the names according to the new list. Also change the load command for each case to fit your files (may be use imread instead of load).
Write (or copy from here) a close_me function at the end of the file:
*code*
function close_me
A=get(gcbf,'UserData');
B.Gamma=A.Gamma;
B.Lims=A.LowHiBotTop;
B.origlims=A.StartingLowHiBotTop;
assignin('base','Result',B)
close(gcbf)
*code end*
At line 461 change the callback of ud.hClose (the close button) to: 'imadjdemo(''close_me'')'.

Finally, replace in all callbacks the 'imadjdemo' string by the new file name using the Find and Replace edit utility.

You will get a Result structure in the base workspace.
Type Result at the Matlab prompt after closing the GUI.

Joe Sababa


BSTeX - Equation viewer for Matlab

Joe
BSTeX- Equation viewer for Matlab
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor