re-constructing an image using basic function in Matlab -
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]
.
Comments
Post a Comment