can i make a logical of a matrix the same size as a matrix?

2 vues (au cours des 30 derniers jours)
Paul
Paul le 17 Mar 2014
Modifié(e) : Paul le 18 Mar 2014
I have a matrix of doubles and convert the image to a black and whit image, anything in the whit is the inside the rest is outside.
I want to use logical to find the pixels of value 1 and use them to find the inner points of the curve.
is this possible?
thanks!

Réponse acceptée

Image Analyst
Image Analyst le 17 Mar 2014
John, do you know how to use the debugger? Because that is your best approach. If not, look here: http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/. Second best approach is to ask "Author: Baris Sumengen sumengen@ece.ucsb.edu" for help since he gave you the code. He might be willing to help you even more to get it working. That's a lot of code to ask us to dig into, understand, fix, and hand over to you to resolve the vague problem that "the solution is never what ti should be."
MATLAB has an active contour function built in. If you want me to give you my demo, let me know.

Plus de réponses (1)

Sean de Wolski
Sean de Wolski le 17 Mar 2014
Have you seen the Image Processing Toolbox's activecontour?
It has a Chan-Vese method already implemented
  1 commentaire
Image Analyst
Image Analyst le 18 Mar 2014
Either way, you're using someone else's function so what difference does it make?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by