Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grayscale - plot
#1
Hello fellow programmers,

I have a problem and would appreciate any help.

My problem:

I have an array of values from 0 und to max(array). array=(200,200) --> 40k values.

I want to make an countourplot of specific grayscalevalues.

R G B
118, 118, 118
119, 119, 119
.
.
.
148, 148, 148

So 31 specific grayscalevalues.

So i want the first grayscalevalue to be assigned to the values from 0 to max(array)/31
--> the second grayscalevalue from max(array)/31 to max(array)/31*2
and so on.

Can anyone help me please?
Reply
#2
Please show us what you've tried so far (posted between the code tags).
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Converting an RGBA image to Grayscale and Binary Joni_Engr 3 4,626 Aug-23-2021, 11:54 AM
Last Post: Pedroski55
  How to plot intraday data of several days in one plot mistermister 3 2,902 Dec-15-2020, 07:43 PM
Last Post: deanhystad
  Maximas in grayscale image yliats 2 2,017 Aug-13-2020, 01:11 PM
Last Post: yliats
  Convert 400 grayscale pixels into RGB python420 1 2,448 Jan-02-2020, 04:19 PM
Last Post: Clunk_Head
  How to plot vertically stacked plot with same x-axis and SriMekala 0 1,917 Jun-12-2019, 03:31 PM
Last Post: SriMekala
  python opencv grayscale conversion error Spandora 1 9,568 May-26-2019, 10:43 AM
Last Post: heiner55
  show grayscale image using matplotlib zyb1003 1 16,514 Nov-01-2017, 11:45 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020