Skip to content

A new CV technique combining polarization optical microscopy, fluorescence microscopy, and image segmentation

Notifications You must be signed in to change notification settings

pywood21/po_mfa_2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

po_mfa_2022

Softwares developped by pywood21:

Source: Yusuke Kita, Tatsuya Awano, Arata Yoshinaga and Junji Sugiyama: Intra-annual fluctuation in morphology and microfibril angle of tracheids revealed by novel microscopy-based imaging.

URL: Click here

This repository divide our programming resources into two parts shown below:

Part I: a new CV technique combining polarization optical microscopy, fluorescence microscopy, and image segmentation.

Part II: X-ray fiber diffraction analysis to measure MFA by peak deconvolution method.

 

 

Part I

Radial file based evaluation of softwood cell anatomy and MFA.

This part corresponds to a series of image analyses techniques, image concatenation, image registration, image segmentation and MFA image creation. Image analysis follows the procedure shown in original paper (See Fig.1).


Python files and jupyter notebooks for Image manipulation corresponding to each step are listed below.

How to use each files is commented in each file.

 

  1. Manipulation of FLM images (step B-2 - B-4 in Fig.1)

 

  1. Manipulation of POM image (step A-2 - A-5 in Fig.1)

 

  1. Simultaneous evaluation of tracheid anatomy and MFA based on radial file units (step C-1 and C-2 in Fig.1)

 

If you try the above codes, please run the jupyter notebooks following the number put on the those names sequentially (P01->P02-> ... -> P10) .

 

Part II

Data deconvolution of fiber diagrams obtained by Rigaku Rapid II

  1. Read raw data : read and convert
    1. Original data is recoded by cylindrical IP camera. Since MFA measurement requires azimuthal intensity profile, one needs to convert cylindirical to cartesian coodinate system
    2. Coordinate system is then converted to polar coordinate system ( r, phi ). r is a radial distance from the center (center_x, center_y), phi is a angle from the horizontal x axis, taken clockwizely.
    3. Original and converted data (intensity data in 2400 x 2400 size of 32bit depth) are saved in one numpy (.npz ) file in three channels. Channels 0,1,2 corresponds to cylindrical, cartesian, polar coordinate data, respectively.
  1. Line profile for MFA measurement

    1. Polar coordinate data is reshaped in panda dataframe adjusting 'index' to 'azimuthal angle', 'columns' to '2-theta angle'. ROI in polar projected data can be obtained for both azimuthal and 2-theta range and in this default settiing, (004) and equators (11-0),(110),(200).
    2. Intensity profiles are obtained from thin-slip from the ROI by integration in either azimuthal or radial directions. Profile data are saved in '.pkl' file.
  2. Deonvolution by peakfitting

    1. 2 equivalent gaussian functions, having common amplitude and standard deviation, distanced 2*MFA are assumed and will be fit to the original profile.
    2. Results are summerized in Excel form.

To start the program:

Create data directory under ./data. For instance, if you have multiple dataset to be analysed, save data in 'cellulose20210909' directory and placed in under./data.

In the 01_Read... program, you rewrite

my_data_set = 'cellulose20210909'

Then run the script. In the order of X01_Read_Convert, X02_Profile_, X03_Fitting. All the necessary files and directories will be generated sequentially.

About

A new CV technique combining polarization optical microscopy, fluorescence microscopy, and image segmentation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published