Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
How to extract 3D position from the 2D projection using (an optimzation method + 3D Gaussian PDF)
Error in solution>computeError (line 122)
L(tril(true)) = L_vec;
Error in solution>@(L_vec)computeError(L_vec,Xp,Yp,alpha,SAD,SID) (line 44)
fMLE = @(L_vec) computeError(L_vec, Xp, Yp, alpha, SAD, SID);
Error in lsqnonlin (line 221)
initVals.F = feval(funfcn{3},xCurrent,varargin{:});
Caused by:
Failure in initial objective function evaluation. LSQNONLIN cannot continue.
Réponses (1)
28 commentaires
- Ans: Yes, Indeed. The AP, CC, and LR are anterior-posterior, caudal-cranial, and left-right directions.
- Ans: Unfortunately, in this stage, I don't have real datasets. So, I decided to create some datasets.
- Ans: Correct. Also, for more clarity, I upload the original File of the article.
- Ans: Yes, Indeed. My task is to implement Poulsen's method. I can use this method in Matlab (awgn(x,10,'measured') to add white Gaussian noise. I wonder if can you help me in the implementation of Step 2 of this code ( untitled3.m)? The implementation of the formula in the Appendix?
- Ans: For this purpose, I also reached the following article [1] which used the triangulation method to estimate 3D tumor location [That will be my second task :) ]. Also, I found there might be some errors in their article regarding equations 1 and 2. I sent them an email to ask for more details and waited for their response.
- Ans: Correct. The Poulsen et al. 2009 study does not provide a formula for [Xp, Yp] calculation. I get them from this article [1, 2].




- In my first attempt, I used:
- In my second attempt, I modified the approach and defined:
P_xp_yp is invalid (zero, negative, or NaN). fmincon cannot continue.
Error in solution>@(L_Vec)Objective(L_Vec,i,XP,YP,SAD,SID,alpha,num_projections) (line 115)
L_Vec_opt = fmincon(@(L_Vec)Objective(L_Vec,i,XP,YP,SAD,SID,alpha,num_projections), Initial_guess, [], [], [], [], lb, ub, @covarianceConstraint, options);
Error in objfunEvaluator (line 5)
fval = feval(Objfun, x, self.FunArgs.AdditionalParameters{:});
Error in OptimFunctions/objectiveFirstEval (line 645)
[fval, grad, hess] = self.ObjectiveFunAndGrad(self,self.FunFcn{3},...
Error in fmincon (line 501)
[initVals.f,initVals.g,HESSIAN,funObj] = funObj.objectiveFirstEval(X);
Error in solution>computeError_a (line 115)
L_Vec_opt = fmincon(@(L_Vec)Objective(L_Vec,i,XP,YP,SAD,SID,alpha,num_projections), Initial_guess, [], [], [], [], lb, ub, @covarianceConstraint, options);
Caused by:
Failure in initial objective function evaluation. FMINCON cannot continue.

- The x,y,z info for the simulated targets is not what we expect it to be, due to an error in untitled4c.m.
- The x,y,z info for the targets is correct, but the Xp,Yp data (projection data) is not what it should be, due to an error in untitled4c.m.
- The x,y,z data is OK, and the Xp,Yp data and the alpha data is correct, but there is a mistake in computeError_b.m, which causes incorrect data to be passed to Objective0(), or computeError_b.m calls fmincon() in an incorrect way.
- The x,y,z data is OK and Xp and Yp are OK, and computeError_b is OK, but Objective0 contains 1 or more errors.
- If the target is small and close to the axis, then ||true_T()||<<1. In this case, it follows from the formula that:
- For this part, please refer to Equation (6) in the attached article, Page 3, which states that "the coordinates of the target position X and Z are usually much smaller than the SAD."
- Since there are four fiducial markers inside the tumor (e.g., for a moving tumor), we should consider that each fiducial marker is moving over time in 3D space (x,y,z;t)(x, y, z; t)(x,y,z;t).
- The time parameter ttt should match the number of projections.
- Thus, in summary, we should have four targets, with their positions changing at each projection. However, the motion of these targets should not exceed 5 mm, meaning they should remain within 0-5 mm in three directions.
Voir également
Catégories
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asie-Pacifique
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)