Question

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
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);

Add a comment
Know the answer?
Add Answer to:
P, 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
  • 2. Write a Matlab program for bitmapped images and display any image on the surface of object in ...

    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 expected result is shown any image taken should rotate on sphere surface in 3 Dimensions File Edit View InsertTools Desktop Window Help Figure 2 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 expected result is shown any image...

  • Problem: Plot the egg holder function and find the global optimizer in Matlab Eggholder function: Y=...

    Problem: Plot the egg holder function and find the global optimizer in Matlab Eggholder function: Y= -(u2+47)*sin(sqrt(abs((u2)+(u1/2)+(47)))) - (u1)*sin(sqrt(abs((u1)-(u2+47)))) where u equals x Below is my code and the picture of the graph I got. I know for a fact that it's wrong but don't know how to fix it. < x1=[-600:10:600]; x2=[-600:10:600]; [u1, u2] = meshgrid(x1, x2); term1=-(u2+47)*sin(sqrt(abs((u2)+(u1/2)+(47)))); term2=-(u1)*sin(sqrt(abs((u1)-(u2+47)))); y=term1+term2; figure surf(u1,u2,y) > Please show all work and explain what you're doing so that I can understand the process....

  • 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...

  • what can be said about the relationship between the frictional force as the angle of the of the system is releaed f...

    what can be said about the relationship between the frictional force as the angle of the of the system is releaed from 89 degrees and decreses to zero. the same for the normal force. what is the telationship between the frictional force and normal force in this sitiation. refer to the last photo for context on the graphs. Figure Fe Edit View Insert Tools Desktop Window Help riction ve angle 10+ 7 6 2 0 10 20 30 4050 60...

  • Matlab A forus is shaped like a doughnut. If its inner radius isa and its outer...

    Matlab A forus is shaped like a doughnut. If its inner radius isa and its outer radius is b, its volume and surface area are given by V '(a + b(b - a)? A = (b2 - ) a. Create a user-defined function that computes V and A from the arguments a and b. LastName_FirstName_P4_fn_calc. b. Test for values where acb, ab and aub. Use values between 1 and 10 for a and b. Your output should show a, b,...

  • Can you please help me answer Task 2.b? Please show all work. fs=44100; no_pts=8192; t=([0:no_pts-1]')/fs; y1=sin(2...

    Can you please help me answer Task 2.b? Please show all work. fs=44100; no_pts=8192; t=([0:no_pts-1]')/fs; y1=sin(2*pi*1000*t); figure; plot(t,y1); xlabel('t (second)') ylabel('y(t)') axis([0,.004,-1.2,1.2]) % constrain axis so you can actually see the wave sound(y1,fs); % play sound using windows driver. %% % Check the frequency domain signal. fr is the frequency vector and f1 is the magnitude of F{y1}. fr=([0:no_pts-1]')/no_pts*fs; %in Hz fr=fr(1:no_pts/2); % single-sided spectrum f1=abs(fft(y1)); % compute fft f1=f1(1:no_pts/2)/fs; %% % F is the continuous time Fourier. (See derivation...

  • 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...

  • 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...

  • MATLAB QUESTION 8) Create a program that first prompts the user to enter any two numbers....

    MATLAB QUESTION 8) Create a program that first prompts the user to enter any two numbers. Then prompt the user again to input as many numbers as they choose. Stop the program by inputting-1. Then, display the largest number and second largest number in the command window once the user kills the program. The built-in max function cannot be used. The figure below is an example of what the command window should look like when the code is ran. First...

  • 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...

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