re-constructing an image using basic function in Matlab -


enter image description here

i want re-construct 2d matrix (represented imagesc) using basic function (polynominal or else) , coefficients. once know kind of basic function suitable particular problem, find coefficients in least-square fashion.

the problem don't know how in 2d , type of basic function should try. did nicely in 1d using polynomial function treating 2d matrix 1d, column column. need think of 2d problem , have no idea how deal this.

i've done searches , seen b-splines n dimensions (http://uk.mathworks.com/matlabcentral/fileexchange/19632-n-dimensional-bsplines) seems nice , similar problem still dont know how use or see connection. played package , see can re-construct image output coefficient. can't find can find matrix of basic function. please help? thank chappi

suppose can import image in rgb format (mxnx3 matrix img; uintx), have dimension vectors x , y (mx1 , nx1, respectively; double) , colormap cmap, in columns [value,r,g,b].

  1. using cmap transform img(mxnx3) data(mxn) matrix.
  2. combining data(mxn), x(mx1) , y(nx1) create fitdata(m.n x 3) matrix in form of columns [x(ii),y(jj),data(ii,jj)].
  3. use fit function or cftool.

Comments

Popular posts from this blog

ruby on rails - Permission denied @ sys_fail2 - (D:/RoR/projects/grp/public/uploads/ -

c++ - nodejs socket.io closes connection before upgrading to websocket -

java - What is the equivalent of @Value in CDI world? -