<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/toastpp/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/toastpp/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 24 Feb 2020 18:20:03 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/toastpp/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>Regarding simulated intensity</title><link>https://sourceforge.net/p/toastpp/discussion/general/thread/916fc9418b/?limit=25#fc3b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all,&lt;br/&gt;
I was wondering what are the units of the simulated intensity.  &lt;/p&gt;
&lt;p&gt;For example, in TOAST++ Tutorial 1&amp;amp;2, we essentially simulated the measured intensity from different detectors. what are you units for said detectors? &lt;/p&gt;
&lt;p&gt;I am asking this as i am trying to understand weither I can gain any insite into the actual detectability of the simulation.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Orr&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Orr Zohar</dc:creator><pubDate>Mon, 24 Feb 2020 18:20:03 -0000</pubDate><guid>https://sourceforge.net1dc358c5ba460ffd3e2ca91a97f3fdb3e043a759</guid></item><item><title>Way to perform bioluminescence tomography</title><link>https://sourceforge.net/p/toastpp/discussion/general/thread/3feabdec06/?limit=25#0028</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am trying to use toast++ to perform fluorescence and bioluminescence tomography. &lt;br/&gt;
It is well explained how to perform fluorescence tomography and I am really amaised to have the possibility to use such a great tool simplifying my reseach!&lt;/p&gt;
&lt;p&gt;I am now strugling to perform bioluminescence tomography.&lt;br/&gt;
Am I right to think that we can perform bioluminescence tomography with toast++ by using the toastReconMultispectralCW function and setting the light source term "qvec" as a zero vector ?&lt;/p&gt;
&lt;p&gt;Thank you  for your help and regards,&lt;/p&gt;
&lt;p&gt;Emmanuel&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Emmanuel Cosnard</dc:creator><pubDate>Fri, 03 May 2019 13:35:24 -0000</pubDate><guid>https://sourceforge.netee90c197fa0a0564fee5bf137a918cfbbd340c37</guid></item><item><title>Inverse model in FDOT_recon_CW_Proj</title><link>https://sourceforge.net/p/toastpp/discussion/general/thread/9d5d44d57e/?limit=25#913c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am trying to run the example to perform 3D forward and inverse modelling in DOT with FDOT_recon_CW_Proj.m (under examples\matlab\fluorescence).&lt;br/&gt;
The forward model seems to work perfectly, and I am actually really glad and grateful to be able to use such a great tool!&lt;/p&gt;
&lt;p&gt;Non the less, the inverse model here doesn't seem to work fine, as the system doesn't encounter the concentrations, and the vector describing the concentration, 'x', is filled with only NaN (not a number).&lt;/p&gt;
&lt;p&gt;I didn't change anything and used the function as it is given on gitHub.&lt;/p&gt;
&lt;p&gt;Has anyone already seen this problem and knows how to solve it?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Emmanuel&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Emmanuel Cosnard</dc:creator><pubDate>Fri, 03 May 2019 13:31:41 -0000</pubDate><guid>https://sourceforge.net90f2e2039d5569d6e1971f629468b97083f46bb8</guid></item><item><title>error in toastmesh command</title><link>https://sourceforge.net/p/toastpp/discussion/general/thread/141fc514da/?limit=25#c639</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to build a spherical mesh in toast++  but  I am facing some problem while importing the mesh from gmsh to matlab. On running the following command from matlab prompt:&lt;br/&gt;
mesh = toastMesh('sphere.msh','gmsh') &lt;br/&gt;
I get the following error:&lt;/p&gt;
&lt;p&gt;Attempt to reference field of non-structure array.&lt;/p&gt;
&lt;p&gt;Error in toastReadGmshMesh (line 11)&lt;br/&gt;
vtx = gmsh.POS;&lt;/p&gt;
&lt;p&gt;Error in toastMesh (line 78)&lt;br/&gt;
                    obj = toastReadGmshMesh(arg1);&lt;br/&gt;
                    Can  you please tell me why am I getting this error?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sristi das</dc:creator><pubDate>Thu, 11 Apr 2019 14:07:00 -0000</pubDate><guid>https://sourceforge.neta882fb017dbdbb2696e63902562c43ec8028b89f</guid></item><item><title>3D solver tutorials for Matlab?</title><link>https://sourceforge.net/p/toastpp/discussion/general/thread/d7aeed3f/?limit=25#4ea6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Just wondering if there are any 3D foward/inverse tutorials for Matlab user that teach how to create 3D mesh mapped with customed mua/mus, source/detectors and generate frequency domain data. Thanks. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shiqi Xu</dc:creator><pubDate>Mon, 11 Dec 2017 18:57:54 -0000</pubDate><guid>https://sourceforge.net3f660ce4102db3ad02506d3cf7d9b89189eed7f8</guid></item><item><title>Some questions about mesh in Toast</title><link>https://sourceforge.net/p/toastpp/discussion/general/thread/2048bad5/?limit=25#b478</link><description>&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nx"&gt;Now&lt;/span&gt; &lt;span class="nx"&gt;I&lt;/span&gt;&lt;span class="s1"&gt;'m modelling the complete problem of photoacoustic tomography, which means that I need to use TOAST to simulate the light propagation, and then use k-wave toolbox(another matlab toolbox) to model sound propagation. That is, the output from TOAST should be the input of k-wave toolbox. &lt;/span&gt;
&lt;span class="s1"&gt;But k-Wave and TOAST use different numerical techniques (regular mesh in k-Wave and irregular mesh in TOAST), I don'&lt;/span&gt;&lt;span class="nx"&gt;t&lt;/span&gt; &lt;span class="nx"&gt;know&lt;/span&gt; &lt;span class="nx"&gt;how&lt;/span&gt; &lt;span class="nx"&gt;to&lt;/span&gt; &lt;span class="nx"&gt;solve&lt;/span&gt; &lt;span class="nx"&gt;the&lt;/span&gt; &lt;span class="nx"&gt;problem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nx"&gt;One&lt;/span&gt; &lt;span class="nx"&gt;way&lt;/span&gt; &lt;span class="nx"&gt;maybe&lt;/span&gt; &lt;span class="nx"&gt;interpolate&lt;/span&gt; &lt;span class="nx"&gt;the&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;from&lt;/span&gt; &lt;span class="nx"&gt;the&lt;/span&gt; &lt;span class="nx"&gt;nodes&lt;/span&gt; &lt;span class="nx"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;the&lt;/span&gt; &lt;span class="nx"&gt;TOAST&lt;/span&gt; &lt;span class="nx"&gt;basis&lt;/span&gt; &lt;span class="nx"&gt;onto&lt;/span&gt; &lt;span class="nx"&gt;the&lt;/span&gt; &lt;span class="nx"&gt;points&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nx"&gt;the&lt;/span&gt; &lt;span class="nx"&gt;k&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;Wave&lt;/span&gt; &lt;span class="nx"&gt;basis&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nx"&gt;Matlab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nx"&gt;But&lt;/span&gt; &lt;span class="nx"&gt;I&lt;/span&gt; &lt;span class="nx"&gt;don&lt;/span&gt;&lt;span class="s1"&gt;'t know how to achieve it and  whether it'&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt; &lt;span class="nx"&gt;reliable&lt;/span&gt; &lt;span class="nx"&gt;and&lt;/span&gt; &lt;span class="nx"&gt;accurate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nx"&gt;Is&lt;/span&gt; &lt;span class="nx"&gt;there&lt;/span&gt; &lt;span class="nx"&gt;anybody&lt;/span&gt; &lt;span class="nx"&gt;here&lt;/span&gt; &lt;span class="nx"&gt;and&lt;/span&gt; &lt;span class="nx"&gt;help&lt;/span&gt; &lt;span class="nx"&gt;me&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nx"&gt;Are&lt;/span&gt; &lt;span class="nx"&gt;there&lt;/span&gt; &lt;span class="nx"&gt;some&lt;/span&gt; &lt;span class="nx"&gt;information&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;papers&lt;/span&gt; &lt;span class="nx"&gt;or&lt;/span&gt; &lt;span class="nx"&gt;examples&lt;/span&gt; &lt;span class="nx"&gt;about&lt;/span&gt; &lt;span class="nx"&gt;it&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nx"&gt;Any&lt;/span&gt; &lt;span class="nx"&gt;answer&lt;/span&gt; &lt;span class="nx"&gt;would&lt;/span&gt; &lt;span class="nx"&gt;be&lt;/span&gt; &lt;span class="nx"&gt;helpful&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
  &lt;span class="nx"&gt;Thanks&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dustin Qi</dc:creator><pubDate>Thu, 25 May 2017 07:20:43 -0000</pubDate><guid>https://sourceforge.net74b81f1766fddeffc1f65f55ee75f653ef2192c0</guid></item><item><title>There is a problem with first reconstruction model(GUI)</title><link>https://sourceforge.net/p/toastpp/discussion/general/thread/0b6ff1f1/?limit=25#ce38</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I would like to know how to put the testing data in to the GUI. &lt;br/&gt;
Because I fail many times. &lt;br/&gt;
This is the first reconstruction test.&lt;br/&gt;
To run a simple test reconstruction,I just follow these steps on your websites&lt;br/&gt;
Here is the matlab error message that describing the problem I met.&lt;br/&gt;
(My computer is x64, Windows10. Matlab:R2016b)&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;recon_gui&lt;br/&gt;
Warning: parameter file not in current working directory.&lt;br/&gt;
Changing directory to C:\Users\Louis Chang\Desktop\Toastdic\toast\test\2D\matlab\&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;hr/&gt;
&lt;h2 id="starting-reconstruction"&gt;Starting reconstruction&lt;/h2&gt;
&lt;p&gt;Error using toastRecon&amp;gt;checkprm (line 199)&lt;br/&gt;
Required parameter field "solver.basis" is missing.&lt;/p&gt;
&lt;p&gt;Error in toastRecon (line 28)&lt;br/&gt;
&lt;span&gt;[prm LPRM]&lt;/span&gt; = checkprm(prm);&lt;/p&gt;
&lt;p&gt;Error in recon_gui&amp;gt;runrecon_Callback (line 219)&lt;br/&gt;
toastRecon(prm);&lt;/p&gt;
&lt;p&gt;Error in gui_mainfcn (line 95)&lt;br/&gt;
        feval(varargin{:});&lt;/p&gt;
&lt;p&gt;Error in recon_gui (line 42)&lt;br/&gt;
    gui_mainfcn(gui_State, varargin{:});&lt;br/&gt;
Error while evaluating UIControl Callback&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;I would like to know how can I solve this. &lt;br/&gt;
I have seen the other discussion about this. But that did not help at all.&lt;br/&gt;
Thanks!!&lt;br/&gt;
Chang, Tai-Jui&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chang, Tai-Jui</dc:creator><pubDate>Wed, 10 May 2017 05:47:38 -0000</pubDate><guid>https://sourceforge.netb76a493409c3f39ff2ebafab531846dfb8bc9f4b</guid></item><item><title>The use of high-order basis functions in the forward solver</title><link>https://sourceforge.net/p/toastpp/discussion/general/thread/1d06ea2e/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ok, first we should try to figure out the "node without pixel support" problem. This would be caused by the specified bounding box being smaller than the mesh extents. This might be caused by rounding errors. You could just try to create the basis mapper without explicitly specifying a bounding box. Toast then automatically calculates the bounding box from the mesh extents, I.e.&lt;/p&gt;
&lt;p&gt;basis = toastBasis(mesh,grd);&lt;/p&gt;
&lt;p&gt;The second problem of ending up with inf values in the system matrix may be a result of the first problem.&lt;/p&gt;
&lt;p&gt;Can you let me know if this solves the problem? Otherwise I'll look into this in more detail.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Schweiger</dc:creator><pubDate>Mon, 01 Aug 2016 12:44:41 -0000</pubDate><guid>https://sourceforge.netf48f5e4dc7609f4771ef09c77af991e6d9d52ea8</guid></item><item><title>The use of high-order basis functions in the forward solver</title><link>https://sourceforge.net/p/toastpp/discussion/general/thread/1d06ea2e/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Toast++ team,&lt;/p&gt;
&lt;p&gt;I would like to use high-order basis functions in the forward solver. Unfortunately, I have some troubles with that. My code with explanations is provided below:&lt;/p&gt;
&lt;p&gt;1) I am using Matlab 2016a PDE Toolbox to generate mesh:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;g = [    4.0000    4.0000    4.0000    4.0000
  -25.0000    0.0000   25.0000    0.0000
    0.0000   25.0000    0.0000  -25.0000
   -0.0000  -25.0000         0   25.0000
  -25.0000         0   25.0000   -0.0000
    1.0000    1.0000    1.0000    1.0000
         0         0         0         0
         0         0         0         0
         0         0         0         0
   25.0000   25.0000   25.0000   25.0000
   25.0000   25.0000   25.0000   25.0000
         0         0         0         0];
model = createpde(1);
pg = geometryFromEdges(model,g);
msh = generateMesh(model,'Hmax',6,'GeometricOrder','quadratic');
figure; pdeplot(model);
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;2) The generated mesh is passed into Toast++ “toastMesh” function along with quadratic basis functions type:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;vtx = msh.Nodes';
idx = msh.Elements';
eltp = ones(size(idx,1),1)*6;
mesh = toastMesh(vtx,idx,eltp);
figure; mesh.Display;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;3) I set up the scattering and absorption coefficients as follows:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;mua0 = 0.01;
mus0 = 1.0;
Musfun0 = [num2str(mus0) '*cos(0.15.*x).*cos(0.15.*y)/2 + ' num2str(mus0)];
Muafun0 = [num2str(mua0) '*sin(0.15.*x).*sin(0.15.*y)/2 + ' num2str(mua0)];
Mua0 = ['@(x,y)' Muafun0];
Mus0 = ['@(x,y)' Musfun0];
MuaFunc = str2func(Mua0);
MusFunc = str2func(Mus0);
ref_bkg = 1.0;
nnd = mesh.NodeCount;
ref = ones(nnd,1) * ref_bkg;
N = 1024;
[gx1,gx2] = ndgrid(linspace(-25,25,N),linspace(-25,25,N));
MUA= MuaFunc(gx1,gx2);
MUS = MusFunc(gx1,gx2);
grd = size(MUA);
bb = [-25 25
      -25 25];
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;4) I call “toastBasis” function: &lt;br/&gt;
&lt;code&gt;basis = toastBasis(mesh,grd,grd,bb,'LINEAR');&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;and get warnings: “Node without pixel support found”. What does this message mean? What is wrong?&lt;/p&gt;
&lt;p&gt;5) Finally, I set up sources and detectors&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;nq = 16;
rad = 25;  %mesh radius [mm]
for i=1:nq
  phi_q = 2*pi*(i-1)/nq;
  Q(i,:) = rad * [cos(phi_q) sin(phi_q)];
  Q(i,:) = [24 0];
  phi_m = 2*pi*(i-0.5)/nq;
  M(i,:) = rad * [cos(phi_m) sin(phi_m)];
end
mesh.SetQM(Q,M);
hold on
plot(Q(:,1),Q(:,2),'ro','MarkerFaceColor','r');
plot(M(:,1),M(:,2),'bs','MarkerFaceColor','b');

% Create the source and boundary projection vectors
qvec = mesh.Qvec('Isotropic', 'Gaussian', 4);
mvec = mesh.Mvec('Gaussian', 2);

% Solve the FEM linear system
K = dotSysmat (mesh,mua,mus,ref,0);
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and end up with a system matrix K which contains “inf” and “-inf” values.&lt;/p&gt;
&lt;p&gt;What is wrong with my code? Could you help me to understand how to use high-order basis functions in Toast++? &lt;/p&gt;
&lt;p&gt;This is an info about my setup:&lt;br/&gt;
Mac OS X Yosemite 10.10.5&lt;br/&gt;
Matlab R2016a&lt;br/&gt;
Toast++ 2.0.0 with precompiled binaries downloaded from &lt;a href="https://sourceforge.net/projects/toastpp/files/"&gt;https://sourceforge.net/projects/toastpp/files/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much for your help.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dmytro Shulga</dc:creator><pubDate>Mon, 11 Jul 2016 14:43:16 -0000</pubDate><guid>https://sourceforge.net75a442809af14167cc720cd272b06bf22758eb96</guid></item><item><title>Some problems regarding mvec, negative values, and non-diffusive regions</title><link>https://sourceforge.net/p/toastpp/discussion/general/thread/1bbb98c7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;To 1: The relationship between surface exitance \Gamma and volume photon density \phi is given by the Robin b.c.:&lt;/p&gt;
&lt;p&gt;\Gamma = -c \kappa \nabla_n \phi&lt;br/&gt;
\phi + 2 \kappa A \nabla_n = 0&lt;/p&gt;
&lt;p&gt;==&amp;gt; \Gamma = c/(2A) \phi&lt;/p&gt;
&lt;p&gt;where \kappa is the diffusion coefficient, A is a parameter that takes into account the effects of the refractive index mismatch at the tissue-air interface, and \nabla_n is the gradient in outward normal direction.&lt;/p&gt;
&lt;p&gt;The measurement projection vector, mvec, projects \phi to the surface exitance \Gamma, and integrates \Gamma over the detector profile.&lt;/p&gt;
&lt;p&gt;M_i = \int_surface \Gamma(s) \sigma_i(s) ds&lt;/p&gt;
&lt;p&gt;where \sigma_i(s) is the measurement sensitivity profile of the i-th detector on the surface.&lt;br/&gt;
Therefore, mvec(i,j) = c/2A sigma_i(r_j)&lt;br/&gt;
where r_j is the position of the j-th node (nonzero only for boundary nodes).&lt;/p&gt;
&lt;p&gt;The "TrigBasis" profile is experimental and can safely be ignored for now. It builds a distributed source or measurement pattern from a cosine basis. Currently it works only for circular 2D problems, and hasn't been tested well.&lt;/p&gt;
&lt;p&gt;To 2: Negative values for Phi usually indicate an insufficiently resolved mesh. Try different mesh resolution and check the behaviour. Often, a higher local node density may be needed close to sources, detectors and high-contrast inclusions.&lt;/p&gt;
&lt;p&gt;More rarely, it could indicate a node order problem in the mesh. You can check that with mesh.ElementSize. All values should be positive.&lt;/p&gt;
&lt;p&gt;To 3: Non-diffuse regions are currently not supported in the Toast++ toolbox. We did some experiments with different approaches (hybrid diffusion/radiosity approach, P_N approximation, but they are not yet part of the toolbox.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Schweiger</dc:creator><pubDate>Fri, 13 May 2016 15:18:10 -0000</pubDate><guid>https://sourceforge.netf4ec70e9cf1e73faa860f7feee36703bc0b7cde4</guid></item></channel></rss>