Thursday, January 20, 2011

Matlab Basics 1 : How to read and display image

Reading an image

The simplest way to read an image is to store the image in the current directory (workspace) of Matlab and then use the function imread as follows:

im = imread('aa.bmp'); %% where aa.bmp is the name of the image

%% the image data has been stored in the variable 'im'

Most of the commonly used formats like jpg, bmp, png are accepted by the imread function.

Alternatively if the image is in a different directory one can use the imread function by specifying the total path of the image

for example:

im= imread('C:/Users/Admin/Desktop/aa.jpg'); %% reads from the folder admin

Displaying an image

The command to display images is as follows:


imshow(im); %% will show the image

The problem here would be that the image would replace the current open image (if any).

For this it is better to use :

figure, imshow(im); %% will open the image in a new window

Once can even name the window using int values to use them for various purposes of display and processing post the display. For example :

figure(5), imshow(im);

To operate several graphic commands (or plot commands) one can use the option 'hold'.

Default value of hold is set to the stage off. Enabling it to 'on' state enables it to hold the current plot and all axis properties so that subsequent graphing commands add to the existing graph.


An interesting graphing command :

Suppose you want to find the co ordinates of a particular point in an image using matlab.

you can use the command:

[x, y]=ginput(i); plot(x, y, '+r'); %% where i is to replaced with the figure number in this case, for the above example we used 5

and then click on the point on the respective image.

the co ordinates will be stored in the matrix [x y].

107 comments:

  1. wao thanks for sharing this awesome stuff here ...........


    Khurram Shahzad
    Alaziz Online

    ReplyDelete
  2. Is there any relation between histogram process and contrast stretching function

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Usually I do not read post on blogs, but I would like to say that this write-up very forced me to try and do it! Your writing style has been surprised me. Great work admin.Keep update more blog.
    Matlab Training in Chennai

    ReplyDelete

  5. Thanks, Learned a lot of new things from your post! Good creation and HATS OFF to the creativity of your mind.
    Very interesting and useful blog!
    matlab Training in Gurgaon

    ReplyDelete
  6. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Click here:
    Microsoft azure training in marathahalli
    Click here:
    Microsoft azure training in bangalore
    Click here:
    Microsoft azure training in pune

    ReplyDelete
  7. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. 
    Devops training in annanagar

    DevOps online Training


    ReplyDelete
  8. All the points you described so beautiful. Every time i read your i blog and i am so surprised that how you can write so well.
    Python training in btm
    Python training in usa
    Python training in marathahalli

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete

  10. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.

    rpa training in Chennai | rpa training in pune

    rpa online training | rpa training in bangalore

    ReplyDelete
  11. Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me 
    python training in rajajinagar
    Python training in btm
    Python training in usa
    Python training in marathahalli

    ReplyDelete
  12. Thank you for sharing such great information with us. I really appreciate everything that you’ve done here and am glad to know that you really care about the world that we live in
    Blueprism online training

    Blue Prism Training in Pune

    ReplyDelete
  13. Its really an Excellent post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog. Thanks for sharing....

    Data Science training in Chennai
    Data science training in bangalore
    Data science training in pune

    ReplyDelete
  14. I appreciate that you produced this wonderful article to help us get more knowledge about this topic. I know, it is not an easy task to write such a big article in one day, I've tried that and I've failed. But, here you are, trying the big task and finishing it off and getting good comments and ratings. That is one hell of a job done!
    java online training | java training in pune

    java training in chennai | java training in bangalore

    ReplyDelete
  15. I likable the posts and offbeat format you've got here! I’d wish many thanks for sharing your expertise and also the time it took to post!!

    java training in chennai | java training in bangalore


    java training in tambaram | java training in velachery

    ReplyDelete
  16. We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!
    Data science course in tambaram | Data Science course in anna nagar
    Data Science course in chennai | Data science course in Bangalore
    Data Science course in marathahalli | Data Science course in btm

    ReplyDelete
  17. We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!
    Best Online Training and Real Time Support
    Best Android Online Training From India
    Best Appium Online Training From India

    ReplyDelete
  18. Thank you for sharing such great information with us. I really appreciate everything that you’ve done here and am glad to know that you really care about the world that we live in
    hperion Training
    Java Training

    ReplyDelete
  19. Thank you for an additional great post. Exactly where else could anybody get that kind of facts in this kind of a ideal way of writing? I have a presentation next week, and I’m around the appear for this kind of data.
    python training in chennai | python course institute in chennai

    ReplyDelete
  20. Really great post, I simply unearthed your site and needed to say that I have truly appreciated perusing your blog entries.
    informatica mdm online training

    apache spark online training

    angularjs online training

    devops online training

    aws online training

    ReplyDelete
  21. Thanks for the good words! Really appreciated. Great post. I’ve been commenting a lot on a few blogs recently, but I hadn’t thought about my approach until you brought it up. 

    Microsoft Azure online training
    Selenium online training
    Java online training
    Java Script online training
    Share Point online training


    ReplyDelete
  22. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 
    devops online training

    aws online training

    data science with python online training

    data science online training

    rpa online training

    ReplyDelete
  23. Really great post, I simply unearthed your site and needed to say that I have truly appreciated perusing your blog entries. I want to say thanks for great sharing.
    Microsoft Azure online training
    Selenium online training
    Java online training
    Python online training
    uipath online training

    ReplyDelete
  24. Get prominent options for QuickBooks near you right away! Without any doubts, QuickBooks has revolutionized the process of doing accounting this is the core strength for small in addition to large-sized businesses. QuickBooks Support is assisted by our customer support specialists who answer fully your call instantly and resolve all of your issues at that moment. It is a backing portal that authenticates the users of QuickBooks to perform its services in a user-friendly manner.

    ReplyDelete
  25. No Tax penalty guaranteed: If the information you provide is probably all correct along with your fund is sufficient in that case your complete taxes should be paid on time that may help save you from virtually any penalty.
    We had been holding great benefits supplied by Quickbooks Payroll Support Phone Number and contains now far more fabulous features also.

    ReplyDelete
  26. Our Support team for QuickBooks Support Phone Number provides you incredible assistance in the shape of amazing solutions. The grade of our services is justified because of this following reasons.

    ReplyDelete
  27. Any QuickBooks user faces any sort of identified errors in their daily accounting routine; these errors can differ from one another to a large degree, so our dedicated QuickBooks Customer Support Number Pro-Advisers are well loaded with their tools and expertise to give most effective resolutions right away to the customers.

    ReplyDelete
  28. Which Is Not A Worrisome Situation. QuickBooks Enterprise Support Number Helps A Person To Get Assistance In Real Time. Although Quickbook Enterprise Support Can Be Availed Using E-Mail And Online Chat Yet QuickBooks Enterprise Support Number Is Released To Be Best Variety Of Assistance.

    ReplyDelete
  29. It signifies that one can access our QuickBooks Enterprise Support Phone Number for QuickBooks at any moment. Our backing team is dedicated enough to bestow you with end-to-end QuickBooks solutions when you desire to procure them for every single QuickBooks query.

    ReplyDelete
  30. We possess the most customer friendly QuickBooks Tech Support Phone Number team team designed to give you the most wonderful technical assistance in QuickBooks Online. Simply call QuickBooks toll-free Number; we assure you the entire satisfaction by giving you the worth of any single penny.

    ReplyDelete
  31. Very often client faces some common issues like he/she is not prepared to open QuickBooks Support Phone Number package, it really is playing terribly slow, struggling to set up and re-install, a challenge in printing checks or client reports.

    ReplyDelete
  32. With regards to features and functionality, QuickBooks always tops the set of perfect accounting software. From accuracy to speed, this software offers the perfection to your accounting process. QuickBooks uses web soul to exhibit all internet based pages. While working on this software, you could face a mistake while wanting to have a look at webpages from QuickBooks program. An error message pops up on your screen specifying the error. Don’t panic, because our company is only at QuickBooks Support Phone Number to help you realize the error and its particular resolution. We now have a team of dedicate and technically skilled professionals to give you the absolute most reliable technical assistance in QuickBooks.

    ReplyDelete
  33. You can simply all from the Quickbooks Support Number for more information details. Let’s see many of your choices that come with QuickBooks which includes made the QuickBooks payroll service a big success.

    ReplyDelete
  34. This technique is wonderful for a medium-sized company. You might get the absolute most wonderful financial tool. Quickbooks Support Number is present 24/7. You can actually call them anytime. The experts are thrilled to assist.

    ReplyDelete
  35. At site name, the buyer care team can help you in resolving every error that hinders the performance and speed with this work. All of us studies every issue beforehand and offers you the optimised solution. If you come with any issue which most of us is just not alert to then it`s not most likely a challenge when it comes to team since it's quick and sharp in finding out from the issue and resolving it straight away. Go right ahead and contact us anytime at Quickbooks Support Number.

    ReplyDelete
  36. So now you have become well tuned in to benefits of QuickBooks Enterprise Technical Support in your organization accounting but since this premium software contains advanced features that will help you and your accounting task to do.

    ReplyDelete
  37. But don’t worry we have been always here to aid you. As you are able to dial our QuickBooks Payroll Support Number. Our QB online payroll support team provide proper guidance to fix all issue connected with it. I will be glad that will help you.

    ReplyDelete
  38. Along with this also offers you joint advanced report that you can use. Sales and purchase order Using this service you can negate the QuickBooks Customer Care Phone Number list or inventories that you have marked as the negative inventories.

    ReplyDelete
  39. Changing the name of the documents can also help you in opening the documents which you might not be able to open because of some problems. So, it is highly necessary that you rename the QuickBooks Desktop Support Phone Number files which you can’t open easily. Sometimes by changing the extension name of the file can also enable you to open the file without any difficulty.

    ReplyDelete
  40. Sometimes, it is not possible to use the QuickBooks software because of the continuous errors and problems in the software and at that time your best friend is the help and support team of the QuickBooks software. These are the simple ways with the help of which you can easily get rid of the QuickBooks Desktop Support Phone Number errors. If you are not able to solve the errors on your own, then you can also take the help of the help and support team.

    ReplyDelete
  41. Our Professionals have designed services in a competent means in order that they will offer the mandatory methods to the shoppers. we now have a tendency to at QuickBooks client Service are accessible 24*7 you just need certainly to call our QuickBooks Enterprise Support Number which can be found available on the market on our website.

    ReplyDelete
  42. Quickbooks Support For Business All of the above has a particular use. People working with accounts, transaction, banking transaction need our service. Some people are QuickBooks Payroll Tech Support Phone Number sheets for a few calculations

    ReplyDelete
  43. In the event, the Fix QuickBooks Error Code 6000-301 still persists then immediately relate genuinely to the QuickBooks support team. They assure to rectify the explanation for the error and deliver the right answer to resolve the issue along to required guidance. The certified QuickBooks specialist has many years of experience in tacking with such problematic error and are designed for 24×7.

    ReplyDelete
  44. The QuickBooks Payroll Support Number team at site name is held responsible for removing the errors that pop up in this desirable software. We look after not letting any issue can be purchased in in the middle of your work and trouble you in undergoing your tasks.

    ReplyDelete
  45. Every user are certain to get 24/7 support services with our online technical experts using QuickBooks support contact number. When you’re stuck in times that you can’t discover ways to eradicate an issue, all that's necessary would be to dial QuickBooks Support For Technical Help. Have patience; they're going to inevitably and instantly solve your queries.

    ReplyDelete
  46. Could you run a business? Would it be way too hard to undertake all? You may need a hand for support. QuickBooks payroll support is a remedy. If you wish to achieve this through QuickBooks, you will get several advantages. Today, payroll running is currently complex. You could need advanced software. There has to be a premier mix solution. QuickBooks Desktop Payroll Support Phone Number often helps. Proper outsource is crucial. You'll discover updates concerning the tax table. This saves huge cost. All experts may take place. A group operates 24/7. You get stress free. Traders become free. No body will blame you. The outsourced team will see all.

    ReplyDelete
  47. QuickBooks has completely transformed just how people used to operate their business earlier. To get used to it, you should welcome this positive change. Supervisors at QuickBook Support have trained all their executives to combat the problems in this software.

    ReplyDelete
  48. Intuit QuickBooks Support Number, it is a user-friendly accounting software; simple to maintain; assisting the business enterprise to keep the records of financial transactions, and many other features.

    ReplyDelete
  49. Payroll updates: These payroll updates have the latest and accurate updates and calculations for state and federal tax tables, payroll tax forms and e-files.
    Create paychecks: QuickBooks Payroll Tech Support Number uses Automatic tax calculation to create paychecks.

    ReplyDelete
  50. HP is regarded as to be among the top-notch brands that provide an array of electronic products, including printers, laptops, computers, and scanners. Nearly all its products are of high-quality, plus they are jam-packed with a few of the HP Printer Tech Support Team Number very most user-friendly features.

    ReplyDelete
  51. Our research team at QuickBooks Customer Support Phone Number is dependable for several other reasons as well. We have customer service executives that are exceptionally supportive and pay complete awareness of the demand of technical assistance made by QuickBooks users.

    ReplyDelete
  52. QuickBooks customer team is best for offering their services delivered on time whether it's day or night. The QuickBooks Support Phone Number team of genius are highly experienced and certified in solving any technical and nontechnical issues.

    ReplyDelete
  53. Payroll functions: A business must notice salaries, wages, incentives, commissions, etc., this has paid to the employees in an occasion period. Above all may be the tax calculations should be correct and based on the federal and state law. Our QuickBooks Support will surely show you when controling all this.

    ReplyDelete
  54. There might be occasions once you might face some form of delay in reaching us, let’s say during the time of filing taxes since there is a lot of hush-hush then. We assure you that individuals will revert for your requirements in less time and work out us accessible to you at QuickBooks Tech Support Phone Number.

    ReplyDelete
  55. Inventory Management: Inuit has surely made inventory management a valuable feature associated with QuickBooks Support. Whilst the user can simply cope with vendors and wholesalers and payment (pending or advance) associated with vendors and wholesalers

    ReplyDelete
  56. Let’s update you utilizing the proven fact that this matter is immensely faced by our customers. Try not to worry after all and e mail us at our QuickBooks Tech Support Phone Number.

    ReplyDelete
  57. Will you be experiencing calculations in operation? QuickBooks Payroll Support Number software will be the better option. You are able to do WCA, PAYE, SDL along with UIF calculations. This generates annual IT3A as well as IRP5. Employees also result in the loan.

    ReplyDelete
  58. Amended income tracker, pinned notes, better registration process and understandings on homepage are the large choice of general alterations for several versions of QuickBooks 2015. It can benefit for QuickBooks Enterprise Support Number to have technical help & support for QuickBooks.

    ReplyDelete

  59. At QuickBooks Tech Support Phone Number we work on the principle of consumer satisfaction and our effort is directed to deliver a transparent and customer delight experience. A timely resolution within the minimum span is the targets of QuickBooks Toll-Free Pro-Advisors. The diagnose and issue resolution process has been made detail by detail and it is kept as simple as possible.

    ReplyDelete
  60. QuickBooks offer Good and reliable bookkeeping services for small businesses by providing most updated and accurate financial records. Impeccable financial records are maintained accurately. Easily dial our QuickBooks Support Phone Number and get connected with our wonderful technical team. But when you get stuck in any kind of technical or any other issue, the QuickBooks Tech Support Phone Number provides the correct solutions and customized solution for all your problems.

    ReplyDelete

  61. QuickBooks Enterprise Technical Support Number – It is a business accounting software that offers its users with accounting solutions without the need of implementing ERP. QuickBooks Enterprise provides a multifaceted accounting platform to manage miscellaneous tasks like payroll, payables, inventory tracking, and more.

    ReplyDelete
  62. QuickBooks is a robust accounting platform that throws less errors as compared to others. Sometimes you could face technical errors within the software while installation or upgrade related process. To get the errors resolved by professionals, give us a call at QuickBooks Premier Support.

    ReplyDelete
  63. Quickbooks Payroll Support cell phone number team spares no effort to fulfill you utilizing the QuickBooks Payroll Support Phone Number best they may be able. This team has precisely what it may need to eliminate the problems that occur in this software without having any trouble.

    ReplyDelete
  64. Any QuickBooks user faces any type of identified errors in their daily accounting routine; these errors can vary from 1 another to a large degree, so our dedicated QuickBooks Support Phone Number Customer Service Pro-Advisors are very well built with their tools and expertise to present most effective resolutions right away to the customers.

    ReplyDelete
  65. Hi! I have read many blogs earlier but haven’t read such a great work before. Truly great content. Keep up the good work. QuickBooks desktop is one of the most prevalent accounting software. in case you face any error in your QuickBooks desktop software then contact us via our QuickBooks Desktop Support Phone Number 1-855-236-7529. The team at QuickBooks Contact Number 1-855-236-7529 is available 24*7 round the clock for you.
    Read more: https://tinyurl.com/y24a2nmz

    ReplyDelete
  66. Appreciating the persistence you put into your blog keep on updating new blogs for the users .
    mobile app training chennai | Mobile Application Training in chennai

    ReplyDelete
  67. What an amazing post, thank you for this mind-boggling post, my mate. Keep it up and keep posting more. QuickBooks Accounting Software is one of the most sought after accounting software used by small and medium-sized businesses. This software along with the beneficial features and functions is also host to several errors and bugs. Thus, to fix them instantly and get back on the track, you can dial and talk to experts at QuickBooks Contact Number 1-833-441-8848 for all the information.

    ReplyDelete
  68. Hey, what a remarkable Post! Great post! I read a lot of posts but have never come across such a post earlier. I’m in love with this post of yours and you have made up to my blogger bucket list. You can even save your time and money, by installing QuickBooks software. For any queries contact our experts at QuickBooks Support Phone Number +1-844-200-2627 and avail instant resolution every time.

    ReplyDelete
  69. Extremely common to handle banking errors like QuickBooks Error code 9999. When such an error takes place, the machine tends to freeze for a couple of seconds on repeat. This example can obviously affect business awfully. If you would like to learn How To Fix Quickbooks Error 9999 yourself, you can continue reading this blog.

    ReplyDelete
  70. I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you!

    data analytics courses

    data science interview questions

    business analytics courses

    data science course in mumbai

    ReplyDelete
  71. QuickBooks Enterprise is a high-functioning software designed specifically towards large organizations. It has multiple advanced features to help out accounting and bookkeeping professionals. If you would like to learn how to Troubleshoot Quickbooks Error 9999, you can continue reading this blog.

    ReplyDelete

  72. Nice Article.very impressed for this informative
    ExcelR data analytics courses

    ReplyDelete
  73. Informative post, i love reading such posts. Read my posts here
    Fdesports
    Laravel web development services
    Intensityesports

    ReplyDelete
  74. Hey Nice Blog!! Thanks For Sharing!!!Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!nice post.
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete
  75. it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
    python training in chennai

    python online training in chennai

    python training in bangalore

    python training in hyderabad

    python online training

    python flask training

    python flask online training

    python training in coimbatore






    ReplyDelete
  76. Very interesting blog. Many blogs I see these days do not really provide anything that attracts others, but believe me the way you interact is literally awesome.You can also check my articles as well.nd I hope that other readers will also experience how I feel after reading your article.Data Science Training In Chennai

    Data Science Online Training In Chennai

    Data Science Training In Bangalore

    Data Science Training In Hyderabad

    Data Science Training In Coimbatore

    Data Science Training

    Data Science Online Training

    ReplyDelete
  77. This was an outstanding piece of content. I really liked it. I'll be back to see more. Thanks!

    Also visit my webpage - 휴게텔



    ReplyDelete
  78. My brother recommended I might like this web site. He was totally right. This post actually made my day.
    You cann at imagine just how much time I had spent for this info! Thanks! 강남안마

    ReplyDelete
  79. Very Informative blog thank you for sharing. Keep sharing.

    Best software training institute in Chennai. Make your career development the best by learning software courses.

    robotic process automation training in chennai
    Docker Training institute in Chennai
    devops training in chennai

    ReplyDelete
  80. It has been simply incredibly generous with you to provide openly
    what exactly many individuals would’ve marketed for an eBook to end
    up making some cash for their end, primarily given that you could
    have tried it in the event you wanted.
    dot net training in chennai
    core java training in chennai
    manual testing training in Chennai

    ReplyDelete
  81. I believe there are many more pleasurable opportunities ahead for
    individuals that looked at your site.
    dot net classes in Chennai
    core java training institutes in Chennai

    ReplyDelete
  82. I believe there are many more pleasurable opportunities ahead for
    individuals that looked at your site.
    Best Manual Testing Training in Chennai
    oracle apps dba training in Chennai

    ReplyDelete
  83. Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. business analytics course in mysore

    ReplyDelete
  84. Pinnacle Game Profiler Crack is just one of the very best great programs. It lets you control the mouse's motion and emulate the keyboard key press. Pinnacle Game Profiler Key

    ReplyDelete