I have an unknown matrix. I need to multiply it by a 2nd matrix. The result of this multiplication should be a binary matrix of values greater than threshold t as 1 and smaller as 0.
For example: Display all values greater than 100 as 1, and others as 0.
Unknown Matrix M1 Result R
|100|99 |100| |0|0|0|
|13 |100|112| ==> |0|0|1|
|0 |150|2 | |0|1|0|
What is M2 (the matrix that I will multiply M1 by) needs to be?
A broader example:
Create Matrix for values larger than t
M1 R
|t| |0|0|1|
|t| * M2 = |0|0|1|
|>t|
My question is my first step to figure out how to solve this issue: https://stackoverflow.com/questions/41517564/monochrome-filter-in-svg-ideally-snap-svg