Tallowed_phorcys_sulphurity
.docx
keyboard_arrow_up
School
Princeton University *
*We aren’t endorsed by this school
Course
325
Subject
Computer Science
Date
May 7, 2024
Type
docx
Pages
2
Uploaded by baloyimal on coursehero.com
Question: What is adb?
Answer: Adb is short for Android Debug Bridge. It allows developers the power to execute remote shell commands. Its basic function is to allow and control communication towards and from the emulator port.
Question: What is the difference between a regular bitmap and a nine-patch image?
Answer: In general, a Nine-patch image allows resizing that can be used as background or other image size requirements for the target device. The Nine-patch refers to the way you can resize the image: 4 corners that are unscaled, 4 edges that are scaled in 1 axis, and the middle one that can be scaled into both axes.
Question: What is the importance of settings permissions in app development?
Answer: Permissions allow certain restrictions to be imposed primarily to protect data and code. Without these, codes could be compromised, resulting to defects in functionality.
Question: Enumerate the steps in creating a bounded service through AIDL.
Answer: 1. create the .aidl file, which defines the programming interface, 2. implement the interface, which involves extending the inner abstract Stub class as well as implanting its methods, 3. expose the interface, which involves implementing the service to the clients.
Question: When does ANR occur?
Answer: The ANR dialog is displayed to the user based on two possible conditions. One is when there is no response to an input event within 5 seconds, and the other is when a broadcast receiver is not done executing within 10 seconds.
Question: Which elements can occur only once and must be present?
Answer: Among the different elements, the “and” elements must be present and can occur only once. The rest are optional, which can occur as many times as needed.
Question: What is an action?
Answer: In Android development, an action is what the intent sender wants to do or expected to get as a response. Most application functionality is based on the intended action.
Question: What is a Fragment?
Answer: A fragment is a part or portion of an activity. It is modular in a sense that you can move around or combine with other fragments in a single activity. Fragments are also reusable.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
MipMaps II
In which case will a vertical blur occur when looking up a texture value with
mipmapping?
The textured surface is perpendicular to the viewing direction in the VCS.
The textured surface is rotated around a horizontal axis in the VCS.
The textured surface is rotated around a vertical axis in the VCS.
None of the above
arrow_forward
The parameter has to be adjusted. The size of the image cannot be supported. A minimum of 40 pixels and a maximum of 2600 pixels must be used for each picture dimension.
arrow_forward
Q5: Apply the Median-Filter to the following image
3.
1.
10
14
13
3.
a) 1 Pixel Median Filter of Bx3 window
b) 3 Pixels Median Filter of 3x3 window
Q6: Develop a code for Mean-Filter
4Oo NN
2 77
4.
arrow_forward
Q 1. Create an OpenGL project, name it GLprojectl where you:
Define a 600x500 render (drawing) window
In the render window, define a coordinate system (-300, 300, -300, 300)
Draw the following points and the line segments between them, select a different color for
every pair of points and their line segment:
а. Р1-(-40, -140), Р2- (100,200)
b. P1=(10,270), P2= (200,0)
с. Р1- (20,10), Р2- (20,-200)
d. P13(0, 0), P2= (250,250)
arrow_forward
What is the purpose of window to viewport mapping? Find values of A, B, C, and D for the case of a world window (10.0, 10.0, -6.0, 6.0) and a viewport (0, 600, 0, 400).
Note: question is from Computer graphics
arrow_forward
Adjust the parameter. Image size is unsupported. Each image dimension must utilize 40–2600 pixels.
arrow_forward
Computer Science Question
arrow_forward
#create a duplicate of the image
for y in range (image.getHeight()-1):
for x in range (1, image.getWidth () -1):
#Row major traversal of each pixel
#display in the image
oldPixel=image.getPixel(x,y)
#Get the pixel present at current place
leftPixel=image.getPixel(x-1,y)
#Get left pixel.
bottomPixel=image.getPixel (x, y+1)
#Get bottom pixel
oldLum-average (oldPixel)
#calcule luminance of current pixel
leftLum-average (leftPixel)
#calculate luminance of left pixel
bottomLum=average (bottomPixel)
#calculate luminance of right pixel
if abs (oldLum-leftLum) >threshold or\
abs (oldLum-bottomLum) >threshold:
new.setPixel (x,y, sharpen (old, degree))
return new
#3main function
def main ():
#Input image
image=Image ("testImage.gif")
image.draw ()
#Call the method, edge detection
out=edge_detection (image, 80,10)
out.draw ()
if
main ()
name
main
":
==
arrow_forward
Create a Godot game that has the following features:
1. Set the game window size so it is the same size as the background image.
2. Use the sprite sheet to create the player ship
3. Write a script that allows the player to move the ship up/down/left/right
4. If the ship leaves the screen stop the ship movement.
5. Use the static ship image to create an NPC
6. Write a script so the NPC moves around the screen
7. If the player ship collides with the NPC then remove the NPC from the
screen.
8. set the display options in the Project settings page to match the background size
9. Use the clamp() function to keep the ship inside the window (see the
programming notes)
10. Make both ships a node of type Area2D and set a collision shape for both objects
11. Use a signal for either ship to detect the collision
12. Have the NPC move around the screen in a pattern set inside a script attached to
the NPC
13. Make the root nodes of the player and NPC Area2D type nodes and name them
14. In the…
arrow_forward
When would a sequential colormap work well in a heatmap?
Select an answer:
when you want to show the data as numbers rather than colors
when the data has discrete chunks that are not ordered
when the data ranges from low to high
when you cannot use the Seaborn wrapper module
arrow_forward
An Internet service provider(ISP) offers free customized websites for their customers. Customization includes;
“background-color” of webpages(you can choose just one color),
“font-size” that will be applied to all webpages (size that could be chosen is from 10 to 16),
“font” that will be applied to all webpages (limited to “Calibri(Body)”, “Arial” and “Times New Roman”) and
Contact Information that will be displayed at the bottom of every webpage and is formed from:
“E-mail address” and
“Telephone number”
Keeping in mind that there exists a unique customer number assigned to each customer and kept in a session variable named “cid” ($_SESSION[‘cid’]) during the login process;
Assuming that you have a database named “quizdb” with a database user named “quizusr” and password “pwd”;
Create the database table named “pages” using the information specified above(i - iv). Fill in the following table for each field that you created.
Field Name
Type
Length/Values
Index…
arrow_forward
1. The process of finding all the pixels that are occupied by an on-screen object.a. geometry shadingb. rasterationc. vertex shadingd. pixel shading
2. Refers to the direction of a vertex point.a. normalb. specialc. abnormald. somewhat normal3. Graphics rendering process is also executed outside the view-space.a. trueb. false4. Which of the following render pipeline stages is executed first?a. geometry shader processingb. color blendingc. input assemblerd. rasterizer
5. This stage is executed on the GPU and is responsible for processing the vertices of an object.a. rasterizerb. tesselationc. geometry shadingd. pixel shading
arrow_forward
What python code for extracting the url links for the images and save it in a folder where images is stored since there's a thousands of url links for that in the csv file
arrow_forward
Question:
Find the normalization transformation that maps a window whose lower left corner is at (1, 1) and upper right corner is at (6, 10) onto a viewport that has lower left corner at (0, 0) and upper right corner at (½, ½).
Subject: Computer Graphics.
Note: write in own words. copy from internet will unhelpful for me
arrow_forward
how many layers the color image is made
of? *
3
which command will plot 5 functions of x:
O plot(xy1; d'xy2:'s"xy3; 0',xy4;xy5;--)
plot(x,y1,d',x,y2,s',x,y3,0',x,y4,x,y5,--)
plot(x.y1.d'x.y2's'xy3.0,x.y4.xy5.--)
O plot(x y1 'd', x y2 's', x y3 'o', x y4, x y5 --)
find information about the image
f? *
who f
O whose f
whos ('f.png')
O whos f
Plot is the only command for plotting a graph in
MATLAB. *
true
O False
о
O O
O O O
ООО С
arrow_forward
JavaFX
Need to write a program that draws an emoji like the one shown in the picture attached. Needs to be Draw it with JavaFX code. Do not employ an image file
arrow_forward
Design a convolution mask that does any one of the following and implement the convolution process (Pls do not use any image processing library functions)
1. smoothing
2. sharpening
3. detect edges
Please show the out put and the code clearly, thanks in advance.
The provided solution is not clear for me. What application have you used? will you please provide me with phyton thanks
Expert Answer
Step 1
The Answer is in given below steps
Step 2
Step 3
Step 4
clc;clear;A = imread('Lenna.png');I = rgb2gray(A);mask1 = (1/16)*[1 2 1;2 4 2;1 2 1]; %Gaussian blurmask2 = [0 -1 -0;-1 5 -1; 0 -1 0]; %Sharpenmask3 = [-1 -1 -1;-1 8 -1;-1 -1 -1]; %EdgeI1 = conv2(I,mask1);I2 = conv2(I,mask2);I3 = conv2(I,mask3);subplot(2,2,1);imshow(I);title('original')subplot(2,2,2);imshow(uint8(I1));title('smooth');subplot(2,2,3);imshow(uint8(I2));title('sharp');subplot(2,2,4);imshow(uint8(I3));title('edge');
Step 5
arrow_forward
It is possible when using textures that the texture coordinates provided to a sampler fall outside the range from 0 to 1.
Describe three different ways that the programmer can specify that the sampler should handle out of bounds texture
coordinate values.
arrow_forward
Q4: The original histogram of 64 x 64 image in 8 gray levels sketched below.
1. Find the histogram equalization mapping,
2. Show the resulting image with its histogram.
15.
0.2
T
6.15
0-
0.05
Original Histogram
arrow_forward
Use a Bootstrap class to add rounded corners on the image.
<img src="img_chania.jpg" alt="Chania" class=" ">
arrow_forward
Subject: Computer Graphics
Note: please write in your own . copy from internet will not help me.
Question: Find the normalization transformation that maps a window whose lower left corner is at (1, 1) and upper right corner is at (6, 10) onto a viewport that has lower left corner at (0, 0) and upper right corner at (½, ½).
arrow_forward
RGB to gray:
Take an image from your system and plot both original image and grayscale image of same image in MATLAB. Provide Matlab code and attach both original and grayscale image.
arrow_forward
Using netbeans create a Java Windows application with the following components:
Main Frame, Text field, and Label . The following component should have the corresponding feature/s:
Text field - accepts user input
- count the number of characters every input change
Label – hidden when the number of characters in a text field is greater than 4
arrow_forward
Build on our PBM image creator from (code shown below) to create a fully functional image editor (in C++), using 2D arrays to store our changes. To make it more interesting by switching to the Portable Gray Map standard. 8 bit PGM files have color values ranging from 0 (black) to 255 (white), with the values in-between being shades of gray. The header is very similar to PBM, and looks like this:
P2
WIDTH HEIGHT
255 IMAGE_DATA
The P2 tells image readers that it is a PGM file, and the 255 indicates the largest possible color value is 255.
You will first prompt the user to enter a width, height, and initial color value to fill the image. You should then create a 2D array with those dimensions and initialize each cell with that color value.
You will then use a loop to create a menu that repeatedly prompts the user to make one of the following choices:
Fill in a pixel with a new color
◦ Prompt the user to enter a row and column value and a new color value. If the array has that row and…
arrow_forward
Create OpenGL Project to build the 2d/3d Scene View of your choice with at least 5 objects in the scene.
Used appropriate multi colors, light shading.
Optional Used appropriate - Animation
Send complete project in word format with program and output
arrow_forward
Q5: Apply the Median-Filter to the following image
1
2
3
4
5
5
7
1
10
9
7
7
2
14
6.
4
7
7
3
13
6
4
7
7
a) 1 Pixel Median Filter of 3x3 window
b) 3 Pixels Median Filter of 3x3 window
arrow_forward
Visit the following webpage: https://archive.org/details/National_Geographic_Wallpapers This webpage hosts a collection of 506 images from National Geographic Magazine with most of these images previously being part of an international photography contest. Your task is to randomly choose 5 images and identify the objects within those images using Google’s vision API. Submit your iPython notebook code, and screenshots of output as shown below(no need to submit the images separately)
You may need to reactivate your Google vision API account (or billing information for trial cycles) if you haven’t used it recently.
arrow_forward
What is the difference between Screen and Overlay blending modes in Photoshop?
arrow_forward
EXPERIMENT: Observing the Image Loader while enabling a debugging capability using global flags
Write down all of the steps of the experiment.
arrow_forward
In octave, using a grayscale image how can you create a block matrix B so that the first 300 columns of the product C = AB are the last 300 columns of A and the last 212 columns of C are the first 212 columns of A.Then display the image C.
arrow_forward
The following options have a convolution kernel and a description of what the kernel does to a
natural image.
Select options that correctly describe the effect of the kernel on the image after convolution.
(Note, vertical lines have changes in the horizontal direction. See @Madhav Malhotra's post in
#questions on Slack for a visual example)
U
U
[100]
0 1 0; this would not change the image
001
го о
0
1
000
1
121
1
1
0
20
0
от
0; this would not change the image
-
1]
1; this would not change the image
1 1]
1; this would make the image smoother
-2 this emphasize/detect horizontal changes in the image
0 -1]
20 -2; this emphasize/detect vertical changes in the image
10-1
[1 2 1
2
4 2 ; this would make the image smoother
2 1
arrow_forward
An object is composed of a 101 × 101 quadrilateral mesh (i.e., 100 × 100 quadrilaterals). On average, each quadrilateral in the mesh projects to 50 pixels. There are 150 objects in the scene. The graphics monitor has resolution 2560 × 1440. Estimate the number of elementary operations needed byi) Z bufferii) Ray casting for which the objects are all spheresiii) Ray casting for which the objects are all complex. For this question, assume that it is easy to test whether a pixel ray intersects a triangle
arrow_forward
1- Create an android program that performs the following activities:
Allows a user upload an image
Set the image as the background NB:Code comment
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Related Questions
- MipMaps II In which case will a vertical blur occur when looking up a texture value with mipmapping? The textured surface is perpendicular to the viewing direction in the VCS. The textured surface is rotated around a horizontal axis in the VCS. The textured surface is rotated around a vertical axis in the VCS. None of the abovearrow_forwardThe parameter has to be adjusted. The size of the image cannot be supported. A minimum of 40 pixels and a maximum of 2600 pixels must be used for each picture dimension.arrow_forwardQ5: Apply the Median-Filter to the following image 3. 1. 10 14 13 3. a) 1 Pixel Median Filter of Bx3 window b) 3 Pixels Median Filter of 3x3 window Q6: Develop a code for Mean-Filter 4Oo NN 2 77 4.arrow_forward
- Q 1. Create an OpenGL project, name it GLprojectl where you: Define a 600x500 render (drawing) window In the render window, define a coordinate system (-300, 300, -300, 300) Draw the following points and the line segments between them, select a different color for every pair of points and their line segment: а. Р1-(-40, -140), Р2- (100,200) b. P1=(10,270), P2= (200,0) с. Р1- (20,10), Р2- (20,-200) d. P13(0, 0), P2= (250,250)arrow_forwardWhat is the purpose of window to viewport mapping? Find values of A, B, C, and D for the case of a world window (10.0, 10.0, -6.0, 6.0) and a viewport (0, 600, 0, 400). Note: question is from Computer graphicsarrow_forwardAdjust the parameter. Image size is unsupported. Each image dimension must utilize 40–2600 pixels.arrow_forward
- Computer Science Questionarrow_forward#create a duplicate of the image for y in range (image.getHeight()-1): for x in range (1, image.getWidth () -1): #Row major traversal of each pixel #display in the image oldPixel=image.getPixel(x,y) #Get the pixel present at current place leftPixel=image.getPixel(x-1,y) #Get left pixel. bottomPixel=image.getPixel (x, y+1) #Get bottom pixel oldLum-average (oldPixel) #calcule luminance of current pixel leftLum-average (leftPixel) #calculate luminance of left pixel bottomLum=average (bottomPixel) #calculate luminance of right pixel if abs (oldLum-leftLum) >threshold or\ abs (oldLum-bottomLum) >threshold: new.setPixel (x,y, sharpen (old, degree)) return new #3main function def main (): #Input image image=Image ("testImage.gif") image.draw () #Call the method, edge detection out=edge_detection (image, 80,10) out.draw () if main () name main ": ==arrow_forwardCreate a Godot game that has the following features: 1. Set the game window size so it is the same size as the background image. 2. Use the sprite sheet to create the player ship 3. Write a script that allows the player to move the ship up/down/left/right 4. If the ship leaves the screen stop the ship movement. 5. Use the static ship image to create an NPC 6. Write a script so the NPC moves around the screen 7. If the player ship collides with the NPC then remove the NPC from the screen. 8. set the display options in the Project settings page to match the background size 9. Use the clamp() function to keep the ship inside the window (see the programming notes) 10. Make both ships a node of type Area2D and set a collision shape for both objects 11. Use a signal for either ship to detect the collision 12. Have the NPC move around the screen in a pattern set inside a script attached to the NPC 13. Make the root nodes of the player and NPC Area2D type nodes and name them 14. In the…arrow_forward
- When would a sequential colormap work well in a heatmap? Select an answer: when you want to show the data as numbers rather than colors when the data has discrete chunks that are not ordered when the data ranges from low to high when you cannot use the Seaborn wrapper modulearrow_forwardAn Internet service provider(ISP) offers free customized websites for their customers. Customization includes; “background-color” of webpages(you can choose just one color), “font-size” that will be applied to all webpages (size that could be chosen is from 10 to 16), “font” that will be applied to all webpages (limited to “Calibri(Body)”, “Arial” and “Times New Roman”) and Contact Information that will be displayed at the bottom of every webpage and is formed from: “E-mail address” and “Telephone number” Keeping in mind that there exists a unique customer number assigned to each customer and kept in a session variable named “cid” ($_SESSION[‘cid’]) during the login process; Assuming that you have a database named “quizdb” with a database user named “quizusr” and password “pwd”; Create the database table named “pages” using the information specified above(i - iv). Fill in the following table for each field that you created. Field Name Type Length/Values Index…arrow_forward1. The process of finding all the pixels that are occupied by an on-screen object.a. geometry shadingb. rasterationc. vertex shadingd. pixel shading 2. Refers to the direction of a vertex point.a. normalb. specialc. abnormald. somewhat normal3. Graphics rendering process is also executed outside the view-space.a. trueb. false4. Which of the following render pipeline stages is executed first?a. geometry shader processingb. color blendingc. input assemblerd. rasterizer 5. This stage is executed on the GPU and is responsible for processing the vertices of an object.a. rasterizerb. tesselationc. geometry shadingd. pixel shadingarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education