已回答
how to produce a signal distorted with noise?
It depends on what characteristics you want the noise to have. If you want noise from a normal distribution with the samples ind...

15 years 前 | 0

已回答
Scale a histogram to get area = 1
If equally-spaced bins are OK, you can do this: % some data d = randn(10000, 1); %compute histogram nbins = 50...

15 years 前 | 1

已回答
Dear sir my research topic is object detection in image using pso. So sir i wnat to see the array generated by agiven input.
The functions image(C) and imagesc(C) will display the array C as an image in a figure window. If you have the Image Processing ...

15 years 前 | 0

已回答
undefined variable, passive variable vector
In MATLAB, you probably don't need to make the vector before you know its size. You don't have to declare variables, so the best...

15 years 前 | 1

已回答
whay do we use @(t) in our code???
It's constructing anonymous functions. See <http://www.mathworks.com/help/techdoc/matlab_prog/f4-70115.html> and <http://www.mat...

15 years 前 | 0

已回答
Combine Matlab and Java
I've used MATLAB to call Java methods. One purpose was to capture and analyse data from a Phidgets accelerometer, which didn't h...

15 years 前 | 0

已回答
xcorr vs conv: in latest MATLAB version
Surely the definition of xcorr was, and still is, the final formula you give (with the + sign in the index), and this is consist...

15 years 前 | 0

| 已接受

已回答
How are method names with a dot in them accessed in classes?
For normal classes, the set/get methods are called automatically when you assign to or access a property: h.AccountStatus = '...

16 years 前 | 2

已回答
How to set Frames Per second
I do not think getsnapshot is suitable for working with a video stream - it's really for getting a single image at a random time...

16 years 前 | 0

已回答
How long have you been using matlab? tell us your story
I learnt to program originally in Fortran. (My first programs, as an undergraduate, were on punched cards.) After various other ...

16 years 前 | 4

已回答
Infinite loop
CTRL+C should normally stop such a script, unless you're calling a MEX function.

16 years 前 | 0

| 已接受

已回答
Search nx3 array row-wise for 2 equal elements
My initial idea is below, but someone may be able to improve on it in efficiency or elegance. There is an awkwardness in this s...

16 years 前 | 0

| 已接受

已回答
edge parameter
I'm not sure what the edge parameter of an image is. If you mean the edge map, and you have the Image Processing Toolbox, the ed...

16 years 前 | 0

已回答
Verifying user input
If you're using a Command Window interface, then you could employ this function, which I wrote a while back. I use it to ensure ...

16 years 前 | 2

| 已接受

已回答
What is the measurement unit for the optical flow velocity components?
The units depend on what the function OpticalFlowMatlab does. I don't know this function, so I can't be sure. Normally, the unit...

16 years 前 | 0

| 已接受

已回答
rgb components
It depends on how the image is currently stored. Assuming it is stored as an RGB image, you can extract the components by indexi...

16 years 前 | 1

已回答
extract randomly a pair from a list
Two suggestions. First: selector1 = @() list(ceil(rand*size(list,1)), :); Then each time you call x = selector1() you wi...

16 years 前 | 0

| 已接受

已回答
Define shared subfunctions inside a classdef *.m file?
Non-static methods require an object as the first argument, and as my_pi is not declared static and doesn't have an argument, it...

16 years 前 | 0

已回答
eval inside arrayfun gives strange error
First, I have to add myself to the list of people for whom it is painful to see someone using sequential variable names construc...

16 years 前 | 2

已回答
How to plot a graph of a line of pixels of an image showing black to white intensity across it.
If you have the Image Processing Toolbox, have a look at improfile.

16 years 前 | 2

| 已接受

已回答
Dynamically write images in different names?
See "How can I process a sequence of files?" at <http://matlab.wikia.com/wiki/FAQ>

16 years 前 | 0

已回答
Converting gray scale to ycbcr??
A greyscale image has no colour information, but you can still represent it as ycbcr if you wish - though it's not clear why you...

16 years 前 | 0

| 已接受

已回答
I want to compare a given input image from a set of images and display the corresponding image
You need to put the different filenames into a cell array. If you concatenate them into an ordinary array, you just get a long s...

16 years 前 | 0

| 已接受

已回答
Path between pixels
The general statement can be expanded to a series of statements: (x0, y0) is adjacent to (x1, y1) (x1, y1) is adjacent...

16 years 前 | 1

已回答
Hump-day puzzler.
If you can read very quickly: [fprintf('I love MATLAB') regexp('x', '(?@quit)')]

16 years 前 | 2

已回答
Hump-day puzzler.
Assuming that execution time isn't a concern, and, please, no typing while the code is running: [fprintf('I love MATLAB') i...

16 years 前 | 0

已回答
reconstruction of video from separated frames
Have a look at getframe, im2frame and avifile.

16 years 前 | 0

提问


Finding example images in the distribution
Is there an easy way to find all the example images (such as pout.tif, greens.jpg) that come with MATLAB and any installed toolb...

16 years 前 | 3 个回答 | 2

3

个回答

已回答
detect the major color in an image- red or blue ?
The question here is surely how to define what you mean by "the major colour is green or red". If you can explain what that mean...

16 years 前 | 1

已回答
Random Corner Patches
It depends on how you plan to use the random corners, and what statistics or other properties you want them to have. If you w...

16 years 前 | 0

加载更多