Skip to content

Pre-process the fluorescence tiff images to NTFI {embryo_name}_{tp}.nii.gz (medical 3D MRI format).

Notifications You must be signed in to change notification settings

chiellini/CImageProcessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImagesPrepocessor

A lot of biomedical image processing python scripts, like pre-process the tiff images of membrane channel to NTFI {embryo_name}_{tp}.nii.gz (medical 3D MRT image).

The following Papers/Projects Used this Repository, and Please Cite Them if You Use Our Tools and Data

Compact the 2D tiff image to 3D NTFT MRT file *.nii.gz.

  • Function stack_memb_slices in file compose_slice.py
    • Using skimage.transform.resize: spline interpolation (z axis)
  • According to their ratio of xy_resolution and z_resolution

Conduct some traditional methods to enhance the images

  • Like 3DMNS density map

Transform 3D NTfTI MRT file *.nii.gz to 3D TIFF FILES

  • Open file "image2d3d_format_transformation.py"

  • Add all embryos in list of embryo_names.

  • Run function "nifti2tiff_seperated(seg_cell_root, tiff_root, segmented=True)"

  • Seg_cell_root is input path and tiff_root is output path

  • Input path contains floders(samples) of nii.gz files

  • Output path contains .tiff floders and tiffmaptxt floders.

    QQ截图20230824103857

Transform 3D TIFF FILES to .obj FILES by ImageJ

  • Modify draw3DObject.ijm

  • Modify tiff_input path which is output path contains .tiff floders and tiffmaptxt floders by 3D_format_transformation.py. and obj_output path in .ijm. Add embryos in embryonames_list. QQ截图20230824104248

  • Open ImageJ click Plugions, Macros, Run and add draw3DObject.ijm. QQ截图20230824110956

Solve imageJ crash

  • Run get_index.ijm and save log as txt. 截屏2023-08-25 下午3 36 59

  • Find last output obj files and find its index.

  • Because there are serval obj files in a index. Log has information to remapping it.

  • Modify start index "i" in second for loop in draw3DObject.ijm. QQ截图20230825154510

  • ImageJ can continue generating obj after last time.

Combine the Seperated Objs into one and assign the cell Name

  • run file "generate_obj_from_seperated_objs.py"

Obj view in ImageJ

QQ截图20230823170900

File structure

QQ截图20230824115042

CITATION

Guan, G., Li, Z., Ma, Y. et al. Cell lineage-resolved embryonic morphological map reveals signaling associated with cell fate and size asymmetry. Nat Commun 16, 3700 (2025). https://doi.org/10.1038/s41467-025-58878-0

About

Pre-process the fluorescence tiff images to NTFI {embryo_name}_{tp}.nii.gz (medical 3D MRI format).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •