User Tools

Site Tools


blogtng:2010-05-04:photobleaching_correction_3d_time_series

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blogtng:2010-05-04:photobleaching_correction_3d_time_series [2010/05/04 10:18] kotablogtng:2010-05-04:photobleaching_correction_3d_time_series [2016/05/24 12:46] (current) – external edit 127.0.0.1
Line 24: Line 24:
 Anycase, there should be 3D-t bleach correction tool (and I need it NOW). I might make some quick solution using two methods, one using division of first frame and the other with exponential fitting. Anycase, there should be 3D-t bleach correction tool (and I need it NOW). I might make some quick solution using two methods, one using division of first frame and the other with exponential fitting.
  
-By the way, bleaching corrected images cannot basically be used for intensity quantification (FRAP, on the other hands, correct bleaching after measuring the raw image). If you are analyzing shapes or positions, no problem for quantification.  +By the way, bleaching corrected images cannot basically be used for intensity quantification (FRAP, on the other hands, correct bleaching after measuring the raw image). If you are analyzing shapes or positions, no problem for quantification.  
 + 
 +---- 
 + 
 +here is the "ratio" version: 
 +<code> 
 +macro "Bleach Corection 3D-t by ratio"
 + run("Duplicate...", "title=bleach_corrected duplicate"); 
 + getDimensions(width, height, channels, slices, frames); 
 + if (frames == 1) { 
 + uslices = getNumber("how many z slices/timepoint?", 1); 
 + if ((slices%uslices) !=0) exit("that slice number dows not match with the current stack"); 
 + frames = slices / uslices; 
 +
 + tIntA = newArray(frames); 
 + setBatchMode(true); 
 + for(i=0; i<frames; i++){ 
 + startf = (i*slices)+1; 
 + endf = (i+1)*slices; 
 + op ="start="+startf+" stop="+endf+" projection=[Sum Slices]"; 
 + run("Z Project...", op); 
 + //print(op); 
 + getRawStatistics(nPixels, mean); 
 + if (i==0) tIntA[i] = mean; 
 + else tIntA[i] = mean/tIntA[0]; 
 + close(); 
 +
 + setBatchMode("exit and display"); 
 + tIntA[0] =1; 
 + for(i=0; i<frames; i++){ 
 + for(j=0; j<slices; j++){ 
 + curframe = i*slices + j+1; 
 + setSlice(curframe); 
 + //print("frame"+curframe + " factor" + tIntA[i]); 
 + op = "value="+tIntA[i]+" slice"; 
 + run("Divide...", op); 
 +
 + print("time point:"+i+1 + "  factor" + tIntA[i]); 
 + }  
 +
 + 
 +</code> 
 + 
 +---- 
 + 
 +**Before Correction** (each row is a time point, with 8 z-slices)\\ 
 +{{:documents:figures2010:bc_montage_before.jpg?350| Before each row is a time point}} 
 +Average intensity along stack slices. 5 peaks corresponds to 5 time points.  
 +{{:documents:figures2010:bc_intensitychange_before.jpg?350|Before}} 
 + 
 +---- 
 + 
 +**After Correction**\\ 
 +{{:documents:figures2010:bc_montage_after.jpg?350|After}} 
 +{{:documents:figures2010:bc_intensitychange_after.jpg?350|After}} 
 + 
 + 
 +---- 
 + 
 +---- 
 + 
 + 
blogtng/2010-05-04/photobleaching_correction_3d_time_series.1272968288.txt.gz · Last modified: 2016/05/24 12:46 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki