[Top] [All Lists]

Re: combine image parts

Subject: Re: combine image parts
From: "Brian J."
Date: Sun, 26 Jul 2009 18:10:02 +0000 UTC
Newsgroups: comp.soft-sys.matlab

"us " <[email protected]> wrote in message <[email protected]>...
> "Brian J."
> > Dear "us", thanks a lot, but when I use  img=phantom(256); then I could not 
> > see the result :((
> you must learn to be a bit more ML-self-contained, as well...
> eg, what do you get with these
>      size(img)
>      r=[min(img(:)),max(img(:))]
> % compare the results with those obtained from the IMG created in the 
> solution...
> us

I am very thankful to you. It was impossible to solve this problem without you, 
thanks a lot. 

The last thing about this is binarization. I have tried to solve it by myself 
but the error is very different so again I need you. When I write the following 

     binaryImage=im2bw(simg, graythresh(simg)); figure(2); imshow(binaryImage);

then I am getting the following error:

??? Error
using ==>
at 114 Unsupported dimension

Error in ==>
at 31

Error in ==>
at 79
common_args =imageDisplayValidateParams(common_args);

Error in ==>
imshow at 199
  = ...

Error in ==>
 binaryImage=im2bw(simg, graythresh(simg));
 figure(2); imshow(binaryImage); 

<Prev in Thread] Current Thread [Next in Thread>