postIDiv method

void postIDiv(
  1. int divx,
  2. int divy
)

Sets Matrix to Matrix constructed from scaling by (1/divx, 1/divy) about pivot point (px, py), multiplied by Matrix.

Returns false if either divx or divy is zero.

Given:

         | J K L |                   | sx  0  0 |
Matrix = | M N O |,  I(divx, divy) = |  0 sy  0 |
         | P Q R |                   |  0  0  1 |

where

sx = 1 / divx
sy = 1 / divy

sets Matrix to:

                         | sx  0  0 | | J K L |   | sx*J sx*K sx*L |
I(divx, divy) * Matrix = |  0 sy  0 | | M N O | = | sy*M sy*N sy*O |
                         |  0  0  1 | | P Q R |   |    P    Q    R |

@param divx integer divisor for inverse scale in x @param divy integer divisor for inverse scale in y @return true on successful scale

Implementation

void postIDiv(int divx, int divy) => c.mnn_cv_matrix_post_idiv(ptr, divx, divy);