I have 2 matrix from 2 different grayscaled Imagedata.
i merged in a single matrix qq and now i must apply a formula that was sent to me today as ColorFunction.
ColorFunction -> (RGBColor[1 - 1/3 #[Alpha], 1 - #[Alpha], 1 - #[Alpha]] /. [Alpha] -> 0.9 &)
i never used this option and when i try using it i get only errors, i tried with
ColorConvert[Image[qq],ColorFunction -> (RGBColor[1 - 1/3 #[Alpha], 1 - #[Alpha], 1 - #[Alpha]] /. [Alpha] -> 0.9 &)]
i am just a novice in mathematica
how should i solve this problem?
>>8066262
Try
ColorConvert[Image[qq], ColorFunction -> (RGBColor[1 - 1/3 # 0.9, 1 - # 0.9, 1 - # 0.9])&]
>>8066274
ColorConvert::imgcstype: ColorFunction->RGBColor[1-Power[<<2>>] #1 0.9,1-#1 0.9,1-#1 0.9]& is an invalid color space specification.
nope just errors
>>8066284
Well then there's something wrong with the output the color function is producing.
Do you know what it's supposed to do? Do you have examples?
Actually did you even read the documentation for ColorConvert?
https://reference.wolfram.com/language/ref/ColorConvert.html
I don't think it's supposed to take a ColorFunction
>>8066297
then what command has this function since it change the color?
>>8066293
like background of pic related
>>8066311
Just map your function over the pixels.
>>8066330
how the fuck do i do it?
>>8066333
Like this
Replace f with your whatever color function you are trying to use, and use the correct numbers for the partitioning
>>8066344
thanks