Question

2. Write a Matlab program for bitmapped images and display any image on the surface of object in two ways b) In figure 2 the
0 0
Add a comment Improve this question Transcribed image text
Answer #1

clc
% read image
[I,map] = imread('kids.tif');
% rotate the image, as image gets autorotated in warp operation
% following command rotates the image 180 degrees, i.e. upside down
I = imrotate(I,180,'bilinear','loose');
% create dimensions for the surface
[X,Z] = meshgrid(-100:100,-80:80);
% create the surface equation
Y = Z.^2 + X.^2;
% figure 1
figure
% create the image on the surface
warp(X,Y,Z,I,map);
% second surface
[X1,Z1] = meshgrid(1:0.5:10,1:20);
Y1 = sin(X1)*3;
% figure 2
figure
warp(X1,Y1,Z1,I,map);

Screenshot:

E Editor-D:\Programs\MATLABİmSurface.m imSurface.m+ clc % read image [I,map]imread (kids.tif): rotate the image, as image g

Figure 1 File Edit View Insert Tools Desktop Window Help 80 60 40 20 -20 40 60 -80 × 10 100 50 -50 -100

Figure 2 File Edit View Insert Tools Desktop Window Help 20 15 10 5 -2 3 4 5 6 78910 1

Image used:

kids.tif
media%2F0db%2F0db2e835-c2d8-4011-98d2-ba

Add a comment
Know the answer?
Add Answer to:
2. Write a Matlab program for bitmapped images and display any image on the surface of object in ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • P, write a Matlab program for bitmapped images and display any image on the surface of object in ...

    p, write a Matlab program for bitmapped images and display any image on the surface of object in two ways b) In figure 2 the expected result is shown any image taken should rotate on sphere surface in 3 Dimensions File Edit View Insert Tools Desktop Window Help Figure 2 p, write a Matlab program for bitmapped images and display any image on the surface of object in two ways b) In figure 2 the expected result is shown any...

  • Given an image of a puck, write a program to get a white outline around the blue object. Save and...

    Given an image of a puck, write a program to get a white outline around the blue object. Save and display the image with the outline. The outline should be approximately similar to the test case outputs shown below. Hint: Use binary image. LANGUAGE : MATLAB ~~~~~ MATLAB ~~~~~~~~~MATLAB

  • Need help on following Java GUI problem: Write a program that lets a user display and...

    Need help on following Java GUI problem: Write a program that lets a user display and modify pictures. Create a window. Add four buttons so that clicking a particular button will shift the image by a small amount in the north, south, east or west direction inside the window. Add a menu bar with two menus: File and Image. The File menu should contain an Open menu item that the user can select to display JPEG and PNG files from...

  • 4. Write a MatLab program that calculates the following indefinite integrals. The program should ...

    4. Write a MatLab program that calculates the following indefinite integrals. The program should use pretty() to display both the original integrand and the integrated result, and also us

  • Write a MATLAB program to accomplish the following: Create a variable x by assigning it the...

    Write a MATLAB program to accomplish the following: Create a variable x by assigning it the value 5. Then, subtract 8 from the square of x and assign the result to a second variable y. Next, create a vector z containing as values all the positive prime integers greater than or equal to 2 and less than 20. Multiply z by two and subtract y, and assign the result to w. ONLY display the value for w in the Command...

  • Write a JavaFX program to display 5 labels and 3 buttons. You can use any kind...

    Write a JavaFX program to display 5 labels and 3 buttons. You can use any kind of Pane you like to use. Display 3 red circles and 2 blue rectangles (pick your own size). Use the Image and ImageView classes (explained in section 14.9 of your textbook) to show 2 images of your choice. Include your first and last name somewhere on the frame, label, button, etc. We won’t discuss handing events where one would be able to click buttons...

  • #PYTHON# In this exercise you will write code which loads a collection of images (which are...

    #PYTHON# In this exercise you will write code which loads a collection of images (which are all the same size), computes a pixelwise average of the images, and displays the resulting average. The images below give some examples that were generated by averaging "100 unique commemorative photographs culled from the internet" by Jason Salavon. Your program will do something similar. Write a function in the cell below that loads in one of the sets of images and computes their average....

  • Task 2: (2 Marks) Noisy Image Restoration You have been provided with seven images named IMG-5698. JPG to IMG-5704. JPG...

    Task 2: (2 Marks) Noisy Image Restoration You have been provided with seven images named IMG-5698. JPG to IMG-5704. JPG. These images were taken in low light conditions with a very high ISO setting which results in "noise" on the image (random fluctuations in pixel intensity) and "bright pixels" (pixels which appear bright in every image, despite not being hit by light) In addition to the seven source images you are also provided with a "dark frame", dark.png. This is...

  • Java Thank you!! In this assignment you will be developing an image manipulation program. The remaining...

    Java Thank you!! In this assignment you will be developing an image manipulation program. The remaining laboratory assignments will build on this one, allowing you to improve your initial submission based on feedback from your instructor. The program itself will be capable of reading and writing multiple image formats including jpg, png, tiff, and a custom format: msoe files. The program will also be able to apply simple transformations to the image like: Converting the image to grayscale . Producing...

  • MATLAB Questions. I have a basic understanding of the tools for MATLAB, but do not know...

    MATLAB Questions. I have a basic understanding of the tools for MATLAB, but do not know how to create the code for these questions. Please show the entire code. 2. A paper cup shaped as a frustum of cone with R-14R1 is designed to have a volume of 25 cm Determine R1, R2 and the surface area, S, of the paper for cups with a height, h, of 1O cm. The volume of the cup, V, and the surface area...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT