how can i make a change in my image ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
hi guys . i have an image (257*161) .
im = f(x,y)
how can i change my image equation to im = f(x/8 , y/12 )
could you please help me ?
thanks
3 Kommentare
Stephen23
am 1 Sep. 2014
Bearbeitet: Stephen23
am 1 Sep. 2014
I downloaded your file matlab.mat , and using the MATLAB function image it created a lovely figure showing some torso cross-section, like from a CT scan.
What is the problem with the image? What exactly do you mean by "image equation"? What is the function f ? What are the variables x and y ? How should the image be different?
Do you wish to scale, resize or skew the image?
Antworten (1)
Image Analyst
am 1 Sep. 2014
Do you possibly mean imresize()?
[rows, columns, numberOfColorChannels] = size(im);
% Get new x-width and y-height using formulas x/8 , y/12
% Remember, arrays are (rows, columns) = (y, x) NOT (x,y)!!!!!!!!!!
newRows = round(rows/12); % New y height
newColumns = round(columns / 8); % New x width
% Resize image
resizedImage = imresize(im, [newRows, newColumns]);
5 Kommentare
Image Analyst
am 3 Sep. 2014
hamed, see my attached demo where I compute the first 4 image moments, mean, standard deviation, skewness, and kurtosis.
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!