CurveAlign for Fibrillar Collagen Quantification (Latest version: V4.0 Beta)

 CurveAlign  is a quantitative tool for interpreting the regional interaction between collagen and tumors by assessment of up to ~thirty stromal fiber features, including angle, alignment, and density. CurveAlign can incorporate fiber extraction from CT-FIRE, another open source tool best suited for individual fiber analysis and can use a machine learning Support Vector Machine (SVM) approach to rank disease-associated features.

 When do I use CurveAlign and when do I use CT-FIRE?

These two programs were developed with complementary but slightly different main goals. CurveAlign(Bredfeldt et al., 2014a; Pavone and Campagnola, 2013; Liu et al., 2017) was developed first and had the main goal of quantifying all fiber angles within a region of interest relative to a user defined boundary be it a straight line or a tumor boundary. As our research grew in investigating the role of collagen in cancer progression and invasion we wanted to investigate how individual fiber parameters could influence cancer and other diseases. Out of this need came the development of CT-FIRE(Bredfeldt et al., 2014b) to analyze individual fiber metrics such as length, width, angle, and curvature.  Besides the relative angle quantification with respect to the boundary, the current version of CurveAlign can be used to extract other collagen fiber features, such as localized fiber density, fiber alignment, and the spatial relationship between fiber and the associated boundary. In addition, the extracted individual fibers extracted by CT-FIRE can be imported into the CurveAlign for additional feature extraction mentioned above. We have future plans to integrate these programs further. For now, CurveAlign should be used for bulk assessment of collagen features including alignment/density and CT-FIRE for individual fiber quantification.

 What can CurveAlign do?

The purpose of CurveAlign is to compute global and localized collagen features that describe collagen remodeling due to its interactions with epithelial cells or other causes. It was developed in order to search for stromal changes that are correlated with disease in images of collagen and epithelial cells. The primary major features may include the angle related to the defined boundary, localized the density and alignment, etc.  Either curvelets in the Curvelet transform or the segmented fibers in CT-FIRE can be used to represent the actual fiber organization depending on the application conditions. The output may be displayed on the screen and written into .csv, .xlsx, .mat data file or .tif image files for further analysis, such as statistical test or image classification. Key features include:

·         Emphasis is on collagen fiber feature extraction with respect to tumor boundary and nearby fibers

·         Analysis of many types of microscopy data including Second Harmonic, Multiphoton and histology stains

·         Measure global orientation related metrics

·         Use nearest-neighbors algorithm to measure localized orientation, alignment, and density of collagen fibers

·         Use region of interest analysis module for localized fiber feature extraction

·         Use curvelets in the curvelet transform to represent collagen fibers

·         Import the fibers extracted by CT-FIRE to represent collagen fibers

Use linear SVM to rank the importance of fiber features in discriminating images from different groups.


 Main release notes:

    CurveAlign v4.0 Beta major updates (August, 2017):

·         Add an automatic boundary creation module to automatically  register H&E image with SHG image, and then segment boundaries based on the registered H&E bright field image

·         Add the ROI manager for defining the regions of interest in an image

·         Add ROI analysis for post-processing CurveAlign analysis results of an individual image

·         Add ROI analysis for running CurveAlign on the defined ROIs of individual image for orientation and alignment measurement with Curvelets

·         Add ROI analysis and ROI post-processing for the defined ROIs in multiple images

·         Add output table to selectively display the alignment information as well as  the associated overlay, heatmap and histogram figures

·         Add options in Curvelets-based analysis to allow the user to specify the scale to be used and the radius to group the curvelets

·         Add an option to select/un-select the fibers within a tiff boundary

·         Add options to control the heat map of the relative angle or localized alignment;

·         Add a function to manually draw tiff boundaries

·         Fix a bug in the measurement and output of the relative angle

·         Add the function to combine the results in a selected folder of CurveAlign output.

 CurveAlign version 3.0 major updates (December 2014):

 Compared to the version 2.3, its primary change is adding fiber feature extraction from CT-FIRE output

·         Output up to thirty four fiber features, including angle, alignment, density, and etc. , these features are saved in both .csv file and .mat file

·         Multiple tiff boundaries can be loaded to investigate the interaction between fiber and cell

·         Read in CT-FIRE fiber extraction results

·         A feature ranking using linear support vector machine approach is included

·         Keep the most features of the older version (2.3), such as the statistics for the relative angles, heat map to show the fiber (angle) alignment, and the fiber-boundary association, etc.


Frequently Asked Questions about CurveAlign can be seen here.



Yuming Liu (primary contact and lead developer, Aug 2014-)

Adib Keikhosravi (current graduate student developer, Aug 2014-)

Michael Pinkert (current graduate student developer, May 2017-)

Guneet Singh Mehta (former graduate student developer, Aug 2014-May 2017)


Jeremy Bredfeldt (former LOCI PhD student, Jun 2012-  Jul 2014)


Carolyn Pehlke (former LOCI PhD student, Jan 2009- May 2012)



Standalone package for Windows 64 bit

Standalone package for MAC

MATLAB m-files

Testing images

Manual and tutorials



·         Matlab standalone APP: See the manual included in the package above

·         MATLAB source code version:Download and unzip the Matlab m-files above. Then go to and register to sign a licensing agreement and download the CurveLab 2.1.2 MATLAB package. Put the subfolder "fdct_wrapping_matlab" under the folder "CurveLab-2.1.2" to the CurveAlign folder, and add it to the MATLAB pathWith MATLAB's Current Folder set to the CurveAlign folder, enter "CurveAlign" at the command prompt to launch the GUI.

Source Code: latest code at Github

Older VersionsCurveAlign version 3.0, version 2.3

Website: Curvelet Transform


Bredfeldt, J.S., Liu, Y., Pehlke, C.A., Conklin, M.W., Szulczewski, J.M., Inman, D.R., Keely, P.J., Nowak, R.D., Mackie, T.R., and Eliceiri, K.W. (2014a). Computational segmentation of collagen fibers from second-harmonic generation images of breast cancer. J. Biomed. Opt. 19, 016007–016007.

Bredfeldt, J.S., Liu, Y., Conklin, M.W., Keely, P.J., Mackie, T.R., and Eliceiri, K.W. (2014b). Automated quantification of aligned collagen for human breast carcinoma prognosis. J. Pathol. Inform. 5.

Liu, Y., Keikhosravi, A., Mehta, G.S., Drifka, C.R., and Eliceiri, K.W. (2017). Methods for quantifying fibriliar collagen alignment. In Fibrosis: Methods and Protocols, L. Rittié, ed. (New York: Springer)

Schneider, C.A., Pehlke, C.A., Tilbury, K., Sullivan, R., Eliceiri, K.W., and Keely, P.J. (2013). Quantitative Approaches for Studying the Role of Collagen in Breast Cancer Invasion and Progression. In Second Harmonic Generation Imaging, F.S. Pavone, and P.J. Campagnola, eds. (New York: CRC Press), p. 373.