1. Download the folder with pdf files
2. Install "FlashFlippingBook PDF To JPG" software to convert pdf to jpg (http://www.boxoft.com/pdf-to-jpg/)
3. Convert all the files (batch mode) to jpg
4. The output format: a folder is created for each pdf. for example if the pdf name is HD07, then there will be a folder
with the name HD001 and there will be a jpg image with the name HD07-001-001
5. Start Matlab, go to the output directory and execute the following comments:
a=dir;
for i=1:length(a)
movefile([a(i).name '/' a(i).name '-001-001.jpg'],'.')
end
for i=1:length(a)
movefile([a(i).name '-001-001.jpg'],[a(i).name '.jpg'])
end
6. move the folder (let's say the folder name is skulls) to the general skull images dir. i.e., the new path would be E:\PROJECTS\skull\DATA\data_june2013\skulls
7. run the MATLAB function ss_ImageRegist.m for image alignment and registration
>> ss_ImageRegist('E:\PROJECTS\skull\DATA\data_june2013\skulls');
8. Next, we need to separate the three views. We will use the masks under the directory: E:\PROJECTS\skull\preprocess_output\mask
It is important to use these masks, since all the images are resized to 800x600 and the function ss_Separate.m ism designed to use these masks specifically. Rin the following function
ss_Separate;
9. Get the skeleton images:
ss_Segment;
Note that the pixel values for the green lines is 255,and red line is 128 in the skeleton images
Tuesday, June 11, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment