回答済み
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年 前 | 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年 前 | 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年 前 | 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年 前 | 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年 前 | 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年 前 | 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年 前 | 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 = '...

約15年 前 | 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...

約15年 前 | 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 ...

約15年 前 | 4

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

約15年 前 | 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...

約15年 前 | 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...

約15年 前 | 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 ...

約15年 前 | 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...

約15年 前 | 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...

約15年 前 | 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...

約15年 前 | 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...

約15年 前 | 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...

約15年 前 | 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.

約15年 前 | 2

| 採用済み

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

約15年 前 | 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...

約15年 前 | 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...

約15年 前 | 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...

約15年 前 | 1

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

約15年 前 | 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...

約15年 前 | 0

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

約15年 前 | 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...

約15年 前 | 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...

約15年 前 | 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...

約15年 前 | 0

さらに読み込む