From: AZZA Foster on 2 May 2010 10:36 Does anyone have any ideas on this issue?? I have thought about placing the image into a matrices and somehow telling matlab to rotate the image/matrices. My images: http://drop.io/ifihag5 http://www.mathworks.com/matlabcentral/newsreader/view_thread/280362#741176 I didnt post this in the thread above because i think that this is a general problem that people are having trouble with, i have looked through about 20 posts on the web and i dont think anyone has come up with an affective way of centering an image to is bounding box. imrotate is not accurate enough to be used for centering images and is not robust enough for barcodes that may need varting degrees of rotation. I have been trying to figure out a squaring formulae that could be used in a matrices or image coordinates.
From: AZZA Foster on 2 May 2010 10:50 "AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message <hrk2kj$duq$1(a)fred.mathworks.com>... > Does anyone have any ideas on this issue?? > > I have thought about placing the image into a matrices and somehow telling matlab to rotate the image/matrices. > My images: > http://drop.io/ifihag5 > > > http://www.mathworks.com/matlabcentral/newsreader/view_thread/280362#741176 > > I didnt post this in the thread above because i think that this is a general problem that people are having trouble with, i have looked through about 20 posts on the web and i dont think anyone has come up with an affective way of centering an image to is bounding box. > imrotate is not accurate enough to be used for centering images and is not robust enough for barcodes that may need varting degrees of rotation. > > I have been trying to figure out a squaring formulae that could be used in a matrices or image coordinates. Is there a way of basically saying to matlab square my image so the the bottom left sits on the same y axis as the top left corner of the image.
From: AZZA Foster on 2 May 2010 17:21 "AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message <hrk3es$5ob$1(a)fred.mathworks.com>... > "AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message <hrk2kj$duq$1(a)fred.mathworks.com>... > > Does anyone have any ideas on this issue?? > > > > I have thought about placing the image into a matrices and somehow telling matlab to rotate the image/matrices. > > My images: > > http://drop.io/ifihag5 > > > > > > http://www.mathworks.com/matlabcentral/newsreader/view_thread/280362#741176 > > Dont matter guys i've stumbled across an easier method, image registering using a base image wil be the easiest way of doing this, i can automate the process as well, so great !!!!!!!! HAPPY DAYS AZZA > > I didnt post this in the thread above because i think that this is a general problem that people are having trouble with, i have looked through about 20 posts on the web and i dont think anyone has come up with an affective way of centering an image to is bounding box. > > imrotate is not accurate enough to be used for centering images and is not robust enough for barcodes that may need varting degrees of rotation. > > > > I have been trying to figure out a squaring formulae that could be used in a matrices or image coordinates. > > > Is there a way of basically saying to matlab square my image so the the bottom left sits on the same y axis as the top left corner of the image.
From: AZZA Foster on 3 May 2010 10:14 "AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message <hrkqbv$pbo$1(a)fred.mathworks.com>... > "AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message <hrk3es$5ob$1(a)fred.mathworks.com>... > > "AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message <hrk2kj$duq$1(a)fred.mathworks.com>... > > > Does anyone have any ideas on this issue?? > > > > > > I have thought about placing the image into a matrices and somehow telling matlab to rotate the image/matrices. > > > My images: > > > http://drop.io/ifihag5 > > > > > > > > > http://www.mathworks.com/matlabcentral/newsreader/view_thread/280362#741176 > > > > > Dont matter guys i've stumbled across an easier method, image registering using a base image wil be the easiest way of doing this, i can automate the process as well, so great !!!!!!!! > HAPPY DAYS > > AZZA > > > I didnt post this in the thread above because i think that this is a general problem that people are having trouble with, i have looked through about 20 posts on the web and i dont think anyone has come up with an affective way of centering an image to is bounding box. > > > imrotate is not accurate enough to be used for centering images and is not robust enough for barcodes that may need varting degrees of rotation. > > > > > > I have been trying to figure out a squaring formulae that could be used in a matrices or image coordinates. > > > > > > Is there a way of basically saying to matlab square my image so the the bottom left sits on the same y axis as the top left corner of the image. Manually selecting the control points in cpselect did the job, but i cant seem to find the padarray line in imtransform as the image has been padded with black pixels around is outer borders. anyone know if imtransform uses pad array?? or something like it?
From: AZZA Foster on 3 May 2010 12:20 "AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message <hrmlnd$p7k$1(a)fred.mathworks.com>... > "AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message <hrkqbv$pbo$1(a)fred.mathworks.com>... > > "AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message <hrk3es$5ob$1(a)fred.mathworks.com>... > > > "AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message <hrk2kj$duq$1(a)fred.mathworks.com>... > > > > Does anyone have any ideas on this issue?? > > > > > > > > I have thought about placing the image into a matrices and somehow telling matlab to rotate the image/matrices. > > > > My images: > > > > http://drop.io/ifihag5 > > > > > > > > > > > > http://www.mathworks.com/matlabcentral/newsreader/view_thread/280362#741176 > > > > > > > > Dont matter guys i've stumbled across an easier method, image registering using a base image wil be the easiest way of doing this, i can automate the process as well, so great !!!!!!!! > > HAPPY DAYS > > > > AZZA > > > > I didnt post this in the thread above because i think that this is a general problem that people are having trouble with, i have looked through about 20 posts on the web and i dont think anyone has come up with an affective way of centering an image to is bounding box. > > > > imrotate is not accurate enough to be used for centering images and is not robust enough for barcodes that may need varting degrees of rotation. > > > > > > > > I have been trying to figure out a squaring formulae that could be used in a matrices or image coordinates. > > > > > > > > > Is there a way of basically saying to matlab square my image so the the bottom left sits on the same y axis as the top left corner of the image. > > Manually selecting the control points in cpselect did the job, but i cant seem to find the padarray line in imtransform as the image has been padded with black pixels around is outer borders. > anyone know if imtransform uses pad array?? or something like it? baseimage = imread('BarcodeMatrixBaseImage.bmp'); figure, imshow(baseimage); figure, imshow(subimage); cpselect(subimage, baseimage); mytform = cp2tform(input_points, base_points,'nonreflective similarity'); registeredimage = imtransform(subimage, mytform, 'nearest'); figure,imshow (registeredimage); XDATA = [0,220]; YDATA = [0,220]; [registerimage,XDATA,YDATA] = imtransform('FillValues',[255;255;255]); gives me the following errors: Error using ==> imtransform>check_A at 477 A must be a nonsparse numeric array. Error in ==> imtransform>parse_inputs at 366 args.A = check_A(varargin{1}); Error in ==> imtransform at 264 args = parse_inputs(varargin{:}); ??? Error using ==> imtransform>check_A at 477 A must be a nonsparse numeric array. Error in ==> imtransform>parse_inputs at 366 args.A = check_A(varargin{1}); Error in ==> imtransform at 264 args = parse_inputs(varargin{:}); ??? Error: Unbalanced or unexpected parenthesis or bracket. Any ideas guys??
|
Next
|
Last
Pages: 1 2 Prev: reshaping matrix Next: help needed to solve nonlinear decoupled matrix equations using fsolve. |