I need some help on spreadsheets in Matlab
    2 次查看(过去 30 天)
  
       显示 更早的评论
    
I have written a script for analysing images of biological cells, which segments them and quantify the output.
Now I need to make Matlab write this information in a spreadhsheet.
This script utililizes the regionpropstool i Matlablab, and creates an array of information on each component like:
- Surface Are
- Perimeter
- MaximumAxisLength
- MinimumAxisLength
There is always an unknown amount of cells (Cn) that has an uknown amount of mitochondrion (Mn).
I need to make Matlabs add the following information to a spreadsheet:
    C1 | C2 | C3 | C4 | ...Cn
 M1          data
 M2
 M3         data
 M4
 ..
 Mn
The problems is that I dont know how to make Matlab add a new row or column, each time it processes a cell. So how does it assign a number to Cn and Mn
6 个评论
  Guillaume
      
      
 2018-10-26
				Thank you, your explanation is much clearer. I do something similar for my work except that I look at images of droplets. I have an unspecified number of images each with a varying number of droplets.
What I don't particularly understand is your proposed storage. Wouldn't each cell (image?) has a varying number of mitochondria? In that case, it doesn't really make sense to have the storage you propose, which is in effect a 3D array (Cell x Mitochondria x paremeter). In my opinion, you would be better off using a 2D storage where each row is a mitochondria, and the cell it comes from as another parameter. Something like:
Mitochondria  |   Cell   |  Area  |   Perimeter   | MajorAxis |  MinorAxis
     1              1        xxx        yyyy          zzzz        ccccc
     2              1        xxx        yyyy          zzzz        ccccc
     3              1        xxx        yyyy          zzzz        ccccc
     1              2        xxx        yyyy          zzzz        ccccc
     2              2        xxx        yyyy          zzzz        ccccc
     1              3        xxx        yyyy          zzzz        ccccc
  ....
With regards to conversion from pixel to micrometer, this really warrant its own question. To do this you need to know the scale of your images. You know this either by taking an image of an object of known size under the same imaging conditions, or you know this becaue you know the magnification of your imaging system.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

