Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop a structure for storing (including swapping), modifying and retrieving raster data. #13

Open
hellozee opened this issue Oct 18, 2018 · 6 comments

Comments

@hellozee
Copy link
Contributor

No description provided.

@2DSharp
Copy link
Member

2DSharp commented Oct 19, 2018

Can you describe it in detail?

@akshay-nm
Copy link

akshay-nm commented Oct 19, 2018

It actually depends on what kind of resolution you want I guess. A raster grid means a 2 dimensional array.
Therefore, you want to store following information:
R,
G,
B,
A,
X,
Y

X,Y is actually not mandatory as a simple map function could be used for mapping the index to X,Y.
RGB : 0-255 (integer)
A: 0-1(float)

@hellozee
Copy link
Contributor Author

Upon a little bit of research I came across this.
In short we need a data structure which can be used to store raster/vector data of multiple color models, also since QGraphicsView supports a limited number of color models, we also need to derive our own widget for viewing the data we are going to store.
Reference on how to get started on this can be taken from here

@akshay-nm
Copy link

By structure, do you mean an API?

@hellozee
Copy link
Contributor Author

Nope a data structure to hold the stuff that I mentioned, on which operations can be applied in a non destructive way (partly at least, you can't avoid some loss due to the conversion of color models) and can be viewed properly.

@akshay-nm
Copy link

Do you intend on saving the data based on the nature of data?
For example, if the data is changing per cell, you use cell by cell, if its same over a range of cell, using run-length, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants