spectralpython / spectral

Python module for hyperspectral image processing
MIT License
571 stars 139 forks source link

what are all these metric in image. #80

Closed BlcaKHat closed 6 years ago

BlcaKHat commented 6 years ago

when i open an image to visualise, what is the scale metric. how do i change it ?. I just want to open the image. suggestion please. https://drive.google.com/open?id=1YHLSd1ZYtpkljzGOnwhQHrjLrlQnKD51

tboggs commented 6 years ago

When spectral.imshow is called, the entire image extent is displayed. The standard matplotlib.imshow tools are used to to pan/zoom the image. Click on the tool button with 4 arrows (at the bottom of the window), then click & drag with the right or left mouse button to pan & zoom.

BlcaKHat commented 6 years ago

asd1

I want to remove the scaling on left and down . how do i do that >? the pen highlighted area

tboggs commented 6 years ago

Images are rendered using matplotlib so you can use matplotlib functions to disable the tick labels.

BlcaKHat commented 6 years ago

tboggs.. sorry to ask again, But i am not able to do it. how do i disable it . where i can put matplot function ?.

tboggs commented 6 years ago

You can create the matplotlib figure explicitly, then pass the "fignum" keyword to spectral.imshow so it will render to that figure. Then, there are multiple ways to modify the tick labels. For example, see here, here, or here.

BlcaKHat commented 6 years ago

I am not able to do it . can I expect more help. ?

jkibele commented 6 years ago

The metrics are just the number of pixels. You can make them go away with one additional line of code.

ax = imshow(image)
ax.axes.set_axis_off()

Here is a working example. This is standard matplotlib functionality, so for more information you can refer to the matplotlib documentation.

BlcaKHat commented 6 years ago

thanx jkibele. this worked for me.