Skip to content
Snippets Groups Projects
Commit f1d8e47a authored by Marc Karnat's avatar Marc Karnat
Browse files

Layout changes.

parent 02a3d2fb
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id: tags:
``` python
import matplotlib.pyplot as plt
import numpy as np
import tifffile
from frap_img import find_sigma, contour_from_tif
# find_sigma(tif[9][20], tif[10][20],0.23) # we need to play with sigma until we find a value at which all the contours are black and the rest is not
base_folder = 'Analysis/';
base_folder = '/home/user/MPIPKS/Automatic_meshing_16/Analysis/';
tif = tifffile.imread(base_folder + 'halfFrapBig_t000000_cropped.tif')
fig = plt.figure()
x_mid, y_mid, z_mid, r = np.genfromtxt(base_folder + '/mid_point_and_radius.csv', delimiter=',')
z = 0.3
number_pixel = 207
sigma = 0.23
d = 20
FRAP = 1
N = 8 # when FRAP lot of point in the midlle are created => can lead to a long time for meshing 1D. The number of points is divided by this value
N = 8 # when FRAP lot of points are created => can lead to a long time for meshing 1D. The number of points is divided by this value
# Recommended values of precision = [best:0.0025, worst:0.05]
lc_min = 0.032
lc_min_selected = 0.01
lc_min_frap = 0.02
# find_sigma(FRAP,tif[9][20], tif[10][20],0.23) # we need to play with sigma until we find a value at which all the contours are black and the rest is not
contour_from_tif(FRAP,tif[9][20], tif[10][20],sigma,d,'workfilefast.geo', lc_min, lc_min_selected, lc_min_frap,z,number_pixel,N)
contour_from_tif(FRAP,tif[9][4], tif[10][4],sigma,d,'workfilefast.geo', lc_min, lc_min_selected, lc_min_frap,z,number_pixel,N)
N = 14
# contour_from_tif(FRAP,tif[9][30], tif[10][30],sigma,d,'workfile.geo', lc_min, lc_min_selected, lc_min_frap,z,number_pixel,N)
```
%% Cell type:code id: tags:
``` python
```
%% Cell type:code id: tags:
``` python
```
%% Cell type:markdown id: tags:
#
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment