Filter löschen
Filter löschen

Question about imresize?

2 Ansichten (letzte 30 Tage)
Alberto Paniate
Alberto Paniate am 27 Okt. 2020
Kommentiert: Adam Danz am 29 Okt. 2020
Hi, I have this question:
I have a matrix whose pixel value represent a gaussian beam. For my experimental purpose I want to make it smaller in a matrix of equal dimensions and I have decided to do this:
Q=padarray(A, [1000*t 1000*t], 0);
SS=imresize(Q,[1000 1000]);
I encrease the matrix dimension then I resize it at the original dimension. Now what I am expecting is to see a smaller gaussian profile. But I see this:
The first matrix is the original one, the second one is the resized one. Why we dont see a gaussian.
  12 Kommentare
Alberto Paniate
Alberto Paniate am 29 Okt. 2020
put E0= 10; it is the same sorry
Adam Danz
Adam Danz am 29 Okt. 2020
Still more undefined vars.
Unrecognized function or variable 'gran'.
Error in ProvaSito (line 17)
for k=1:gran:(size2-gran)
Perhaps you could download your attachment and try to run it after clearning your workspace. Then you can find the missing vars and supply them.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by