Prev: summing arrays in a loop
Next: DitrectTorqueControl_SRM
From: Bhuvan on 27 Apr 2010 21:52 hi..i got another problem i'm using imshow('') to unload or delete an image from an axis...but this doesn't work everytime...is ther a better way to delete an image from the axis............... thank you......
From: ImageAnalyst on 28 Apr 2010 06:27 On Apr 28, 1:52 am, Bhuvan <kushalbhu...(a)yahoo.co.in> wrote: > hi..i got another problem i'm using imshow('') to unload or delete an image from an axis...but this doesn't work everytime...is ther a better way to delete an image from the axis............... > thank you...... ------------------------------------------------------------------ Maybe you'd like this: imshow([]);
From: Steven Lord on 28 Apr 2010 09:26 "Bhuvan" <kushalbhuvan(a)yahoo.co.in> wrote in message news:1768383003.34999.1272434004770.JavaMail.root(a)gallium.mathforum.org... > hi..i got another problem i'm using imshow('') to unload or delete an > image from an axis...but this doesn't work everytime...is ther a better > way to delete an image from the axis............... > thank you...... Call IMSHOW with an output argument (the handle to the image) when you first create the image. When you want to delete it, call DELETE on the handle. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
From: Bhuvan on 30 Apr 2010 08:33 Thanks a lot steve...i initially had used imshow('');but it wasn't workin in all cases... can you help me out in this...i want to find similar images just based on the rgb values...(approximate match.what i hav done till now is to compute std2 of the two images and then compare it...but u knw it doesn't work in all cases... even dissimilar images show matches(approximately)... now with matrices of two images how can i get their rgb values and compare them...would be really great if u wud shed some light on this...pls...thanking you
From: ImageAnalyst on 30 Apr 2010 14:35
On Apr 30, 12:33 pm, Bhuvan <kushalbhu...(a)yahoo.co.in> wrote: > Thanks a lot steve...i initially had used imshow('');but it wasn't workin in all cases... > can you help me out in this...i want to find similar images just based on the rgb values...(approximate match.what i hav done till now is to compute std2 of the two images and then compare it...but u knw it doesn't work in all cases... even dissimilar images show matches(approximately)... > now with matrices of two images how can i get their rgb values and compare them...would be really great if u wud shed some light on this...pls...thanking you ------------------------------------------------------------------------------------------------ For a rough cut, I'd calculate the rgb to lab transform (with the makecform function in the image processing toolbox) and then compute lab image of each image. Now, you want to find the image that has the closest color to that, so you means want to computer the "Delta E" (which is color science lingo for "color difference") between your potential matching images and your input image. Look up delta E on the web or just use the square root of the sum of the squares of delta L, delta A, and delta B square deltaE = sqrt((L1-L0).^2+(A1-A0).^2+(B1-B0).^2); You can either calculate the delta E based on the average LAB over all pixels, or, better, you can calculate a delta E image (on a pixel by pixel basis, where each pixel is the delta E between images at just that pixel position). This pretty much answers your question. Delta E is the most common way of comparing colors. If you want to take is a step further and find the *closest* match, you simply pick the potential match image with the lowest delta E to your source image, averaged over all pixels. A delta E of zero would be no difference, a 1 is barely detectable, while a value of 5 is fairly easily noticed. |