Hi,I have a problem, I have tosolvethis exercise: Strand 3:Define the functionfalseColor The function takesas input agray-levelimageas outputand makesthe corresponding image infalse color.Thefalse coloris obtainedin this way: blackgl=0 correspondsto blackcolor =[0 0 0]whilethe gray levelsranging from0 to80 on False colorshould rangebetween blackand blue(color[0 0 255]) with allthe nuances.As you can seethe glgrowis to growonly theblue componentofcolor. from 80 to160 oncolor changesfrom blue([0 0 255])to purple([2550255]), sonowonlyincreases the red component. From160 to 255colorranges from violet([2550255])to white ([255 255 255]), increasingonly green component.
how can Icreate this function?
I have previouslytakenan imagefrom file,andmodified withgrayscale.