Filter löschen
Filter löschen

resize each pixel in an image based on its width and height

3 Ansichten (letzte 30 Tage)
Farz Tak
Farz Tak am 19 Aug. 2016
Kommentiert: Farz Tak am 19 Aug. 2016
I want to 2d plot something like the picture but I don't want to use pcolor since it plot the center of every two pixels i.e., if my Matrix A has the size of (10,7), the pocolor gives (9,6) pixels. Imagesc doesn't have this problem but I cannot adjust the pixel size like what pcolor does (image below is with pcolor). Do you have any suggestion for this problem? Thanks

Antworten (1)

Walter Roberson
Walter Roberson am 19 Aug. 2016
  2 Kommentare
Farz Tak
Farz Tak am 19 Aug. 2016
Bearbeitet: Farz Tak am 19 Aug. 2016
Thanks.I looked into that and still reading. I'll get back it that works and doesn't reduce the number of pixels in x and y direction. But I think it is the "surf" function that does the same thing as pcolor.
Farz Tak
Farz Tak am 19 Aug. 2016
No, texture mapping does reduces the pixels by one in each direction.

Melden Sie sich an, um zu kommentieren.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by