hye everyone i m doing my project "automatic vechicle identification".i have to design software in matlab,i have done extraction of plate region ,segmentation of characters,...now i want to save these segmented characters so that i can further recognize these character from a data base......any body can help me please feel free to write...
Hi All,
How do I save jpeg images with no compression in Matlab?
I tried
targetImageFile = 'skype2.png';
targetImage = imread(targetImageFile);
imwrite(targetImage,'output.png','Compression','none',...
'WriteMode','append');
However, I got
input:
compressionRatio = 1.992735e+000
output:
compressionRatio = 2.09085...
Hi,
I have a v = 2x30 matrix and I need to take make another matrix to take all points of v
whose y coordinates are positive
...
For an arbitrary sized matrix x, find the index of the last non-zero element in each row of a given matrix.
For example. For the matrix
x = [ 0 9 7 0 0 0; 5 0 0 6 0 3; 0 0 0 0 0 0; 8 0 4 2 1 0 ]
The vector [ 3 6 0 5 ] should be obtained.
...
For the matrix alpha described below, write a script to perform the following computations. Use a complete sentence to describe every number you display. Only use the fprintf() function for displaying answers.
Compute and display the maximum and minimum values in alpha.
Compute and display largest odd number in each row.
Compute and ...
Possible Duplicate:
Can we solve this using matlab
For the matrix alpha described below, write a script to perform the following computations. Use a complete sentence to describe every number you display. Only use the fprintf() function for displaying answers.
*Compute and display the maximum and minimum values in alpha.
*C...
hey guys, I got some difficulty here. It is purely coding algorithm problem. Okay, the program is shown below:
for f=1:(nFrames-1)
h=histogram(imgYuv(:,:,1,f));
j=histogram(imgYuv(:,:,1,f+1));
X=abs(h-j)/256; %normalize the difference
S=sum(X);
end
Basically, I want to calculate the difference between two adjacent elem...
Hey guys, I got this error message when I tried to trigger the function below. Can anybody help me out? Thanks!
>> changeYuv('tilt.yuv',352,288,1:40,40);
??? Index exceeds matrix dimensions.
Error in ==> changeYuv at 32
j=histogram(imgYuv(:,:,1,k+1));
>> [x,y,z,a]=size(imgYuv)
x =
288
y =
352
z =
3
a =
40...
I would like to copy some files from a folder to another folder using MATLAB routines. My goal is to copy one file every 4 files from the initial folder to the second one.
My files look like this:
aa-dd-cc-11-01.txt
aa-dd-cc-11-02.txt
aa-dd-cc-11-03.txt
aa-dd-cc-11-04.txt
aa-dd-cc-11-05.txt
aa-dd-cc-11-06.txt
aa-dd-cc-11-07.txt
aa-dd-cc...
is it possible to have an interactive session through pydev for using matplotlib? The problem is that I cannot get shell access to drive the charts as the interpretor halts after the show() command. I would like to have an interactive session through pydev.
Interactive sessions are well described by the matplotlib manual here: http://ma...
I am looking for an efficient way to determine if a set is a subset of another set in Matlab or Mathematica.
Example:
Set A = [1 2 3 4]
Set B = [4 3]
Set C = [3 4 1]
Set D = [4 3 2 1]
The output should be: Set A
Sets B and C belong to set A because A contains all of their elements, therefore, they can be deleted (the order of elements...
Let x=1:100 and N=1:10 I would like to create matrix x^N so that the ith column contains the entries [1 i i^2 ... i^N]
I can easily do this using for loops. But is there a way to do this using vectorized code?
...
I have a question connected to this code:
t = -20:0.1:20;
plot3(zeros(size(t)),t,-t.^2);
grid on
hold on
i = 1;
h = plot3([0 0],[0 t(i)],[0 -t(i)^2],'r');
h1 = plot3([-1 0],[0 0],[-400 -200],'g');
for(i=2:length(t))
set(h,'xdata',[-1 0],'ydata',[0 t(i)],'zdata',[-400 -t(i)^2]);
pause(0.01);
end
In this code, I plot two in...
I have an image in Matlab:
img = imopen('image.jpg')
which returns an uint8 array height x width x channels (3 channels: RGB).
Now I want to use openCV to do some manipulations on it, so I write up a MEX file which takes the image as a parameter and constructs an IplImage from it:
#include "mex.h"
#include "cv.h"
void mexFunction(in...
I work at a nanotech lab where I do silicon wafer dicing. (The wafer saw cuts only parallel lines) We are, of course, trying to maximize the yield of the die we cut. All the of die will be equal size, either rectangular or square, and the die are all cut from a circular wafer. Essentially, I am trying to pack maximum rectangles into a ci...
I haven't used MATLAB in a while so i can't figure out what I'm doing wrong here.
I want to plot (on one graph) curves for 4 different Temperatures. V should be on the x-axis and P should be on the y-axis.
What I have after the % is just a reminder for me and has nothing to do with what I'm doing in the plot.
Here's what I have in my...
I'm currently self-teaching myself matlab, and I'm interested in cellular automata that was exhibited in old programs like Wolfram's Life1D and Conway's Game of Life from the early 1980s. Is there any available code that would produce Wolfram's Life1D in matlab in some form? I've searched online but have not found anything. Thanks.
...
Hallo Everyone,
I am actually on topic of 3d-Scanning for robotic pick&place-applications.
To get a start I'm using an ICP-algorithmus to match the position of a reference object relative to the actual object. For this purpose I am using Octave/Matlab with the following code:
http://www.mathworks.com/matlabcentral/fileexchange/12627-it...
How do I obtain all the axes handles in a figure handle?
Given the figure handle hf, I found that get(hf, 'children') may return the handles of all axes. However, the Matlab Help suggests that it may return more than just the axes handles:
Children of the figure. A vector containing the handles of all axes, user-interface objects di...
I'm running Matlab 7.8.0 under Windows.
I am calling an external utility using dos() which creates a file in the current directory.
I the file is created correctly, but it cannot be seen by exist or fopen, which return 0 and -1 respectively. The filename is correct!
>> pwd
ans =
I:\
>> ls
file1.asc file2.asc file3.asc
>> ex...