1

I am trying to convert the pixel values that appeared to be an array (see the snapshot below) into numeric. In its current state, every time I tried implementing reduction, I got an error:

Input to Reducer.mean must be a numeric scalar, not Type<Float<dimensions=1>>.

Here's a snapshot of the console when I printed the data:

enter image description here

1 Answer 1

1

Nevermind, just found out that the function

arrayFlatten

does the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.