A) DATASET: The dataset is available as .RAR files in 2 parts each. Make sure to unzip the files before executing the codes.
- Fresh THz data: Mouse5B_Fresh.mat
- Block THz data: Mouse5B_Block.mat
- Pathology Mask: Pathology_Mouse5B_Mask.png This pathology mask identifies the regions within the pathology results, i.e. red blue represents cancer, red represents fat, black corresponds to lumens, and white is the background.
Dataset description:
- ScanData: matrix with dimensions <y,x,t> representing the data of the THz scan. y and x are the positions of the scan where a signal was received while t is the 1024-point time-domain signal received at that position. Generally our basic imaging consists of looking at the maximum of the ScanData along the t-axis to get a 2D image with dimensions <x,y>.
- xrange: physical positions of the x-axis in the scan in millimeters.
- yrange: physical positions of the y-axis in the scan in millimeters.
- trange: time-domain axis of the reflected signal at each point in picoseconds in case you wish to plot individual time-domain signals.
- TissueMask: matrix with dimensions <y,x> that specifies the region of interest (pixels marked as 1).
B) MAIN FILES:
- Get_THz_Image: Creates the THz image based on the maximum peak of the time-domain data.
- Rotation: Aligns the pathology image with respect to the THz mask.
- main: Performs the mesh-morphing algorithm.
C) HOW TO RUN:
- Download all the files in the repository and save them in the same folder.
- Unzip the data files and make sure their names match the description in part A.
- Run Get_THz_Image.m to obtain the THz image shape, save it as a PNG file.
- Run Rotation.m to align the pathology mask with respect to the THz image, save this output as a PNG file. IMPORTANT: If black regions show up due to the rotation in the boundaries of the image, manually DELETE these regions before the next step.
- Run main.m and follow the instructions in the code.
For further details, please refer to: https://scholarworks.uark.edu/cgi/viewcontent.cgi?article=4276&context=etd At the end of the document, there is an USER MANUAL for this work.
D) UPDATES:
- The code now indicates if there is an OVERLAP in the mesh. If you get an OVERLAP warning, modify your mesh until you do not receive the warning anymore. Either ADD or DELETE control points until this warning clears up.
E) CHANGES:
To make any changes to the files, please refer to the comments included in the scripts.
F) CONTACT INFORMATION:
Tanny Chavez Esparza
email: [email protected]