problem with false color..please help me !!!:)
in
Programming Questions
•
2 years ago
Hi, I have a problem, I have to solve this exercise:
Strand 3: Define the function falseColor
The function takes as input a gray-level image as output and makes the
corresponding image in false color. The false color is obtained in this way:
black gl = 0 corresponds to black color = [0 0 0] while the gray levels ranging from 0 to 80 on
False color should range between black and blue (color [0 0 255]) with all the nuances. As you can see the
gl grow is to grow only the blue component of color.
from 80 to 160 on color changes from blue ([0 0 255]) to purple ([255 0255]), so now only increases the
red component.
From 160 to 255 color ranges from violet ([255 0255]) to white ([255 255 255]), increasing only
green component.
how can I create this function?
I have previously taken an image from file, and modified with grayscale.
I hope you can help me.
Thank you.
greetings
Strand 3: Define the function falseColor
The function takes as input a gray-level image as output and makes the
corresponding image in false color. The false color is obtained in this way:
black gl = 0 corresponds to black color = [0 0 0] while the gray levels ranging from 0 to 80 on
False color should range between black and blue (color [0 0 255]) with all the nuances. As you can see the
gl grow is to grow only the blue component of color.
from 80 to 160 on color changes from blue ([0 0 255]) to purple ([255 0255]), so now only increases the
red component.
From 160 to 255 color ranges from violet ([255 0255]) to white ([255 255 255]), increasing only
green component.
how can I create this function?
I have previously taken an image from file, and modified with grayscale.
I hope you can help me.
Thank you.
greetings
1