Quantize dct cofficents in matlab
hello i need to perform quantization to dct cofficents for an image, for a block size of 8*8 pixles in matlab. can you help me with the syntax, thank you. ...
hello i need to perform quantization to dct cofficents for an image, for a block size of 8*8 pixles in matlab. can you help me with the syntax, thank you. ...
Previously, I implemented mutators as follows, however it ran spectacularly slowly on a recursive OO algorithm I'm working on, and I suspected it may have been because I was duplicating objects on every function call... is this correct? %% Example Only obj2 = tripleAllPoints(obj1) obj.pts = obj.pts * 3; obj2 = obj1 end I then ...
Hello, how can i generate quantizatinon metrices with diffrent size and quality, is there a function in matlab for this? ...
how is possible to make and save(export) animated GIF picture from "movie" command? ...
Hi, I have some Matlab functions defined in .m files and I'd like to import them into Matlab (as in I'd like them to form part of the commands). Is this possible please and how can I do this? Thank you very much and regards, Krt_Malta ...
Hey guys, I would like to know how to mask part of an image that is in BLACK & WHITE ? I got an object that needs to be edge detected, but I have other white interfering objects in the background that are below the target objet ... I would like to mask the entire lower part of an image to black, how can I do that ? Thanks !! EDIT I ...
I have 3 web cameras and 3 axes in MATLAB's GUI. How can I place webcaminput1 to axes1, webcaminput2 to axes2 and webcaminput3 to axes3 ? ...
Hey guys, I am tracking an object that is thrown in air, and this object governs a parabolic pattern. Im tracking the object through a series of 30 images. I managed to exclude all the background and keep the object apparent, then used its centroid to get its coordinates and plot them. Now im supposed to predict where the object is goin...
I am getting 3 camera input to MATLAB with Infinite Trigger. But after minutes, cameras fill up my memory, and I have to restart MATLAB. How can I deal with this memory problem? ...
i have 100 b&w image of smthing.the probllem is i want to scan each image in 0&1 formatin mby n format and then place each image to one over one and again scan and save them in mbynby100 form. how i do this and from where i should start _jaysean ...
Hi there, I would like to know how can I get certain inputs and put them in more than one row in the cell array ... I basically want an array that updates one input per row in ever loop. The loop is looped 30 times, so I want to have 30 rows and 2 columns ( x and y columns) I have this code : For N=1:30 . . . Binary = ...
B=[1 1 1 1 1 1....1] % vector of length N elements Xk= sin(2*pi/16) i need to find function alpha(l,k) which is having two variables l and k and a condition given that alpha(l,0)=alpha(l,-1)=alpha(l,-2)......=alpha(l,-(N-1))=0 i.e no matter what value of l ,alpha = 0 for past values A= input('no of iterations'); % no. of iterations ...
So I have two cell arrays: A = {2 2 2 2} B = {[1 2] [3 2] [5 5] [7 7]} and a function of two arguments: F = @(a, b) [a * b(1), (b(2) / 3), (b(1) + a) * 22] And I want to apply the function to the two cell arrays like so: idealfun(F, A, B) and have it do the right thing (return a cell array with four cells of 1x3 vectors). Any i...
Hi guys, I would like to ask how to plot ellipse in such format?? a*x^2+b*y^2+c*x*y+d*x+e*y-1=0 I tried with ezplot and contour and it didn't seem to work. Thank you guys! Cliff.C ...
I know I can create a 3D surface plot in MATLAB by doing: x = linspace(1,10,100); y = linspace(10,20,100); [X Y] = meshgrid(x,y); Z = X * Y; surf(X,Y,Z); But this requires that all the nodes for the height map generated line up. I have a set of data which has arbitrary points (x,y) and a height (z). Is there a simple way to plot a ...
Hi everyone, I have such code: a=5; b=a; c=10; u = (0:0.05*pi:2*pi)'; %' v = [0:0.05*pi:2*pi]; X = a*sin(u)*cos(v); Y = a*sin(u)*sin(v); Z = c*cos(u)*ones(size(v)); Z(Z>0)=0; % cut upper V1=4/3*pi*a*b*c; d=1/2; e=2^d; a2=a/e; b2=a/e; c2=c; V2=4/3*pi*a2*b2*c2; X2 = a2*sin(u)*cos(v);%-2.5; Y2 = b2*sin(u)*sin(v); Z2 = c2*cos(u)*ones(size(v...
Hi, I have a CSV file, I want to read this file and do some pre-calculations on each row to see for example that row is useful for me or not and if yes I save it to a new CSV file. can someone give me an example? in more details this is how my data looks like: (string,float,float) the numbers are coordinates. ABC,51.9358183333333,4.183...
Hello all ... I'm using MATLAB to open a batch of CSV files containing column headers and data (using the 'importdata' function), then I manipulate the data a bit and write the headers and data to new CSV files using the 'dlmwrite' function. I'm using the '-append' and 'newline' attributes of 'dlmwrite' to add each line of text/data on...
I have a vector of 358 numbers. I'd like to make a numerical integration of this vector, but I don't know the function of this one. I found that we can use trapz or quad, but i don't really understand how to integrate without the function. ...
I am currently using the built in random number generator. for example nAsp = randi([512, 768],[1,1]); 512 is the lower bound and 768 is the upper bound, the random number generator chooses a number from between these two values. What I want is to have two ranges for nAsp but I want one of them to get called 25% of the time and the...