tag:blogger.com,1999:blog-15418143.post9207315743843762050..comments2024-03-09T05:42:18.102-05:00Comments on Tombone's Computer Vision Blog: Simple Newton's Method Fractal code in MATLABTomasz Malisiewiczhttp://www.blogger.com/profile/17507234774392358321noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-15418143.post-9603724210117048122013-11-17T02:34:19.566-05:002013-11-17T02:34:19.566-05:00can u plzz send me a simple fractal program in mat...can u plzz send me a simple fractal program in matlab?Anonymoushttps://www.blogger.com/profile/05471371998590503078noreply@blogger.comtag:blogger.com,1999:blog-15418143.post-1139218078727746842012-12-16T17:29:42.795-05:002012-12-16T17:29:42.795-05:00MIT License
Copyright (C) 2011 by Tomasz Malisiew...MIT License<br /><br />Copyright (C) 2011 by Tomasz Malisiewicz<br /><br />Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:<br /><br />The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.<br /><br />THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Tomasz Malisiewiczhttps://www.blogger.com/profile/17507234774392358321noreply@blogger.comtag:blogger.com,1999:blog-15418143.post-58478908234227169692012-12-16T06:21:49.147-05:002012-12-16T06:21:49.147-05:00Hi. What is the licence of your code ?
AdamHi. What is the licence of your code ?<br />Adamadamhttps://www.blogger.com/profile/01880613085056366434noreply@blogger.comtag:blogger.com,1999:blog-15418143.post-43060536782801414572012-09-22T12:29:11.838-05:002012-09-22T12:29:11.838-05:00If you type "imagesc(niters)" you will g...If you type "imagesc(niters)" you will generate the pictureTomasz Malisiewiczhttps://www.blogger.com/profile/17507234774392358321noreply@blogger.comtag:blogger.com,1999:blog-15418143.post-85978042126300615212010-05-18T02:08:47.779-05:002010-05-18T02:08:47.779-05:00You can easily adapt the above code to do that for...You can easily adapt the above code to do that for you via Newton's method. Just define f(x) and fprime(x) which is the derivative of f(x). I can't help you with the details -- it is not difficult.Tomasz Malisiewiczhttps://www.blogger.com/profile/17507234774392358321noreply@blogger.comtag:blogger.com,1999:blog-15418143.post-65298971627348746062010-05-18T01:59:07.775-05:002010-05-18T01:59:07.775-05:00hello sir, can you give me the MATLAB code for fi...hello sir, can you give me the MATLAB code for finding the complex (imaginary roots ) of a function? e.g --- x^2+25=0.Unknownhttps://www.blogger.com/profile/10269513642189129049noreply@blogger.comtag:blogger.com,1999:blog-15418143.post-85901625482677766652009-07-31T12:12:52.654-05:002009-07-31T12:12:52.654-05:00I imagined that it would run in Octave too but nev...I imagined that it would run in Octave too but never tried. Thanks for trying out!<br /><br />The reason why it runs fairly fast is that the Newton's Method iterations are vectorized over the pixels in the image. The only loop is over iterations. My additional speedup is to remove pixels from consideration once they have converged.<br /><br />What's happening is that a complex number gets set for every pixel in the image and Newton's Method is ran to solve for the roots of the equation z^3-1=0 with the pixel's complex number as the initialization.<br /><br />This image is then created by showing for every pixel how many iterations it took to converge. The other quantity of interest is which root was found; z^3-1=0 has three roots, one real and two complex. Showing the roots is a bit harder and to keep the code short and readable I used the iterations and Matlab's imagesc jet colorscheme.Tomasz Malisiewiczhttps://www.blogger.com/profile/17507234774392358321noreply@blogger.comtag:blogger.com,1999:blog-15418143.post-66020205780028017592009-07-31T11:05:57.179-05:002009-07-31T11:05:57.179-05:00Just so you know: This code runs in Octave as well...Just so you know: This code runs in Octave as well.Unknownhttps://www.blogger.com/profile/15828641677947661893noreply@blogger.com