What does sc in imagesc stand for?

4 visualizzazioni (ultimi 30 giorni)
David Katz
David Katz il 26 Mar 2023
Risposto: Image Analyst il 27 Mar 2023
Pretty much the title question. Thank you.

Risposte (2)

the cyclist
the cyclist il 26 Mar 2023
Modificato: the cyclist il 26 Mar 2023
scaled colors
doc imagesc
  8 Commenti
DGM
DGM il 27 Mar 2023
Modificato: DGM il 27 Mar 2023
Does it really matter whether those two letters mean "scaled" or "scaled color" or "scaled cdata"?
Or is it more important what all three of those names suggest? All three describe the behavior of the function -- specifically how it differs from the behavior of image(). Imagesc() is basically a simple wrapper for image() which adds the convenience of setting the 'CDataMapping' property to 'scaled'. It offers a few related conveniences, but that's the main one that most people would use when calling it with no extra arguments. Doing this:
imagesc(myimage)
is (basically) the same as
image(myimage,'cdatamapping','scaled') % default is 'direct'
I don't know if that was even part of the curiosity, but I'll just throw that out there anyway.
I will add one thought. Imagesc() really looks like the type of thing you'd write after you found yourself doing something simple way too often. So if you're going to write a simple convenience tool, what's the likelihood the name you'd use is in some way an abbreviated reference to the options you want to avoid typing again?
I could be wrong. I don't know what the earliest versions of these two functions looked like.
Walter Roberson
Walter Roberson il 27 Mar 2023
By the way,
edit imagesc

Accedi per commentare.


Image Analyst
Image Analyst il 27 Mar 2023
Well I always thought it meant scaled since it works for gray scale and I don't use the word "color" for gray levels. And it is consistent with the sc in soundsc() vs sound() function where it means scaled (since sounds don't have visible colors).
However the help says this:
imagesc
Display image with scaled colors
imagesc(C) displays the data in array C as an image that uses the full range of colors in the colormap. Each element of C specifies the color for one pixel of the image.
So I guess it's somewhat ambiguous whether the c is from "scaled", or if it's from "colors".

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by