Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help fix my code. I am wishing to create a method that transforms the image, or any image, into grayscale using 30%, 59%, and

Please help fix my code. I am wishing to create a method that transforms the image, or any image, into grayscale using 30%, 59%, and 11% to convert the pixel values. Right now, I am getting a green tint, instead of gray. Please provide a repaired java code that correctly converts to grayscale.image text in transcribedimage text in transcribedimage text in transcribed

public void filter(PixeLImage theImage) l // get the data from the image Pixelll data - theImage.getData); //for each pixel multiply the color value for each red green and blue by //to make the image gray for (int row = 0; row

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

ISBN: 3030302776, 978-3030302771

More Books

Students also viewed these Databases questions

Question

(6) If E(X) = 1 and E(X2) = 2, then the variance is 2. Pg45

Answered: 1 week ago