From: Akshay Chaudhari on 6 Feb 2010 00:18 Hey guys, I have a pretty simple image : http://drop.io/b2r3eej I just want to measure the properties of the black regions. I took a look at the tutorial that ImageAnalyst has posted and I am essentially using that word for word. But for some reason, my code does not compile. It has the error: "??? Error using ==> regionprops>ParseInputs at 1112 Size of I doesn't match size information found in the first input argument. Error in ==> regionprops at 154 [I,requestedStats,officialStats] = ParseInputs(imageSize, varargin{:}); Error in ==> script at 20 blobMeasurements = regionprops(labeledImage, Image, 'all');" My code is available at: http://pastebin.com/f39f3c8ee I am sure it is not a major problem but I have very little to none experience with image processing and I would love to learn more about it. Thank you very much for the help! -Akshay
From: Akshay Chaudhari on 6 Feb 2010 00:25 "Akshay Chaudhari" <sickofhotmail(a)gmail.com> wrote in message <hkiu2c$qar$1(a)fred.mathworks.com>... > Hey guys, I have a pretty simple image : http://drop.io/b2r3eej > I just want to measure the properties of the black regions. I took a look at the tutorial that ImageAnalyst has posted and I am essentially using that word for word. But for some reason, my code does not compile. It has the error: > "??? Error using ==> regionprops>ParseInputs at 1112 > Size of I doesn't match size information found in the first input argument. > > Error in ==> regionprops at 154 > [I,requestedStats,officialStats] = ParseInputs(imageSize, varargin{:}); > > Error in ==> script at 20 > blobMeasurements = regionprops(labeledImage, Image, 'all');" > > My code is available at: http://pastebin.com/f39f3c8ee > I am sure it is not a major problem but I have very little to none experience with image processing and I would love to learn more about it. > Thank you very much for the help! > > -Akshay
From: ImageAnalyst on 6 Feb 2010 09:13 Akshay Chaudhari What version of MATLAB do you have? The ability to pass in the original image only appeared in 2008a I believe. It also says that in the comment of your code.
From: Akshay Chaudhari on 6 Feb 2010 16:46 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <c81ae3d6-01ce-463b-807e-12ab24a26334(a)o8g2000vbm.googlegroups.com>... > Akshay Chaudhari > What version of MATLAB do you have? The ability to pass in the > original image only appeared in 2008a I believe. It also says that in > the comment of your code. I am running 2009b currently.
From: ImageAnalyst on 6 Feb 2010 19:48
On Feb 6, 4:46 pm, "Akshay Chaudhari" <sickofhotm...(a)gmail.com> wrote: > ImageAnalyst <imageanal...(a)mailinator.com> wrote in message <c81ae3d6-01ce-463b-807e-12ab24a26...(a)o8g2000vbm.googlegroups.com>... > > Akshay Chaudhari > > What version of MATLAB do you have? The ability to pass in the > > original image only appeared in 2008a I believe. It also says that in > > the comment of your code. > > I am running 2009b currently. ----------------------------------------------------------------------------- It's not word for word. I would never say Image = imread('binary.png'); because I would not want to use a variable name that was so close to one of the reserved functions, image(). But anyway, I ran your code with the coins.png image, because I don't have your binary.png image, in R2008b and it ran just fine. Now I suspect your binary.png. Are you sure it's a monochrome image and not a color image? Set a breakpoint at line 20 and hover the cursor over Image. Does it say it's n by m or n by m by 3? If it is just a 2D monochrome image, then post your image to http://drop.io and I'll run it on your specific image. -ImageAnalyst |