Helloi have an image and want to show its matrix represenation.

  • Thread starter Thread starter qwerty321
  • Start date Start date
  • Tags Tags
    Image Matrix
Click For Summary

Discussion Overview

The discussion revolves around how to represent a grayscale image as a matrix, specifically focusing on the conversion of pixel values to numerical entries in the matrix. The participants explore the necessary steps and considerations for achieving this representation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant seeks assistance in showing the matrix representation of a grayscale image.
  • Another participant questions the initial request, suggesting that more information is needed to provide help.
  • A participant clarifies that the image is a 16x16 pixel grayscale image and suggests uploading it to an image-hosting service.
  • There is a discussion about replacing black squares with 0 and white squares with 1 to represent pixel values in the matrix.
  • Participants emphasize the need to determine the dimensions of the matrix and the corresponding values for each pixel based on color.
  • Clarification is provided regarding the representation of grayscale values, indicating that all zeros represent black and all ones represent white.
  • There is a question about the total number of bits needed for the matrix representation, with participants discussing the implications of different bit depths.

Areas of Agreement / Disagreement

Participants generally agree on the basic approach to converting pixel values to a matrix format, but there are uncertainties regarding the specifics of bit representation and the total number of bits required. The discussion remains unresolved on these points.

Contextual Notes

Limitations include the lack of clarity on the exact requirements for the matrix representation and the assumptions about how pixel values are translated into numerical values. The discussion also reflects varying interpretations of the problem statement.

qwerty321
Messages
56
Reaction score
0
Hello
i have an image and want to show its matrix represenation..can anyone help me?
 
Physics news on Phys.org


so no one is wiling to help me?:S
wince i have joigned this forum,noone helped me:S
it is my first year and i really am in need of your help:S
 


You mean you want to find the matrix representation of a linear transformation? You have to tell us more info than that if you want help. Without elaboration it's like asking how to find [tex]\int f(x) dx[/tex] without saying what f(x) is.
 
Last edited:


i have an image a pciture in grayscale and black,and i need to show the matrix represenation of the image (matrix should be in decimal)
 


Oh you mean that type of image. In that case, upload your picture on a image-hosting service like imageshack.us and post the image link here.
 


qwerty, you'll first have to show us what your thoughts are on solving this before getting help. It's PF policy, you show an attempt towards solving it first.

You must have some idea what is involved with this problem. It's a 16x16 pixel image.
 


i think i should replace every black square with 0 and every white square with 1 right?
 


qwerty321 said:
i think i should replace every black square with 0 and every white square with 1 right?

The question asks you for the matrix representation. So you need to first figure out the dimensions of your matrix and based on the info given you should know how many rows / columns that matrix should have. And each pixel directly represents an entry in the matrix. You need to figure out what value to put for each entry in the matrix (e.g., "pixel") and the info tells you how to make the translation from pixel color -> numerical value.

So yes, you are correct that you must replace every black square with 0...but that's not it. Read the text under the image.
 
  • #10


ok so i have 16 rows and 16 colums and then..?
 
  • #11


Yes...
 
  • #12


decimal of 0 is 0 right?
and decimal of 1 is 1?
 
  • #13


qwerty321 said:
decimal of 0 is 0 right?
and decimal of 1 is 1?

Yes, the above is correct, but the problem tells you something different.

"The number of bits used to represent gray scale is 2, with all zeros being black, and all ones being white."
 
  • #14


so?what do they mean?
 
  • #15


what is the total number of bits needed? is it 16*16*2 or 16*16*4?
 
Last edited:
  • #16


How many pixels aka matrix entries do you have? How many bits does each take up?
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
11
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 69 ·
3
Replies
69
Views
5K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K