PHP Classes

Recommendation for a PHP class to regrid 2d matrix: Regrid one 2d matrix to another of different dimensions

Recommend this page to a friend!
  All requests RSS feed  >  Recommendation for a PHP class to reg...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Recommendation for a PHP class to regrid 2d matrix

A request is featured when there is no good recommended package on the site when it is posted. Edit

Picture of jaydeel by jaydeel - 3 years ago (2021-08-23)

Regrid one 2d matrix to another of different dimensions

This request is clear and relevant.
This request is not clear or is not relevant.

+1

I have a 2d grid that maps motion detection zones onto a camera image.

Let's say the grid is 80x45, and in this grid are mapped 4 different zones (A,B,C,D).

I need to remap multiple areas within a 2d grid to another 2d grid.

I want to re-size the 4 zones from this original grid (80x45) to new grids (say 64x36 or 160x90), so that zones retain their shapes relative to each other.

  • 2 Clarification requests
  • 3. Picture of Ray Paseur by Ray Paseur - 3 years ago (2021-08-25) Reply

    Email is fine: Ray.Paseur@Gmail

    • 4. Picture of jaydeel by jaydeel - 3 years ago (2021-08-25) in reply to comment 3 by Ray Paseur Comment

      Thanks Ray. Email sent from jaydeel.tech@gmail

  • 1. Picture of Ray Paseur by Ray Paseur - 3 years ago (2021-08-25) Reply

    Can we please see some test data showing the "before-and-after" we want to get? Thanks!

    • 2. Picture of jaydeel by jaydeel - 3 years ago (2021-08-25) in reply to comment 1 by Ray Paseur Comment

      I have images to share, but am unable to include them or provide links in this reply box. Can you suggest an alternative - perhaps I could send them by email?

Ask clarification

1 Recommendation

Np PHP Matrix Class: Manipulate matrices with Lapack and Blas libraries

This package can manipulate matrices with Lapack and OpenBlas libraries.

It uses the PHP FFI extension to call the Lapack and OpenBlas and perform several types of operations with matrices. Currently, it can :

- Matrices decomposition (LU, SVD, Eigen, Cholesky)
- Matrices Signal-processing (1D, 2D Convolution)
- Poisson,Gaussian Matrices
- Calculate the product of a general matrix and another general matrix
- Calculate the product of a symmetric matrix and a general matrix
- Update rank n of a symmetric matrix
- Update rank 2k of a symmetric matrix
- Compute the product of a general matrix and a vector stored in a band format.
- Compute the product of a column vector and a row vector. (Real number)
- Calculates the index of the element with the largest absolute value in the vector.
- Calculates the index of the element with the smallest absolute value in the vector.
- Exchange the contents of the vector.
- Compute the Euclidean norm of a vector.
- Add vectors
- Calculates the sum of the absolute values of each component of the vector.
- Rotate about a given point.
- Given the point P (a, b), rotate this point to givens and calculate the parameters a, b, c, and s to make the y coordinate zero.
- Multiply a vector by a scalar.
- Etc.
This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Manuel Lemos by Manuel Lemos Reputation 26695 - 3 years ago (2021-08-24) Comment

I do not recall seeing a package that does exactly that of "regriding" another package.

What you can do is to take a package like this one that is recommending and improve it or suggest improvements to the author, so it can do what you need.


Recommend package
: 
: