Jump to content

load binary data as image


rhumbaflappy

Recommended Posts

Is there a plugin that will allow the loading of binary data as an image?

There is a similar capability in Photoshop and PainShopPro. I'm not writing about a RAW image loader ( to handle camera data ). I'm writing about a loader for a data matrix.

For example, I have 8-bit data, a 257x257 matrix, that can be viewed as 8-bit greyscale, and could then be assigned a palette in PSP version 8. After reworking the data visually, it could be resaved as a binary matrix without the palette, resulting in a new 257x257 matrix.

I deal with flight simulator data, and often have use to edit land classification data this way. I can do it in PSP8, but I much prefer wortking with Paint.net

I also deal with 16 bit data for elevation... I don't know if Paint.net even would have this capability.

Dick

Link to comment
Share on other sites

It's possible, but a plugin would have to be written specifically for that.

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

With PSP and PhotoShop ( at least the older versions ), loading the file brings up a menu to ask the number of channels, the order of the channels, and the ?x? size of the data.

I alter land classification data this way. Others have used this to check or alter elevational data.

Dick

Edited by rhumbaflappy
Link to comment
Share on other sites

I could have a look at this for you.

You should know that Paint.net plugins cannot resize the canvas. So any plugin I come up with would simply be an import tool to get the data onto the current canvas. For exporting the data again, the only plugin which comes close is this one Image to Code. Would that work?

I'd need a couple of examples of the matrixes to play with. Also....,

1. Is the matrix size always going to be 257x257?

2. Is the data always 8-bit?

Link to comment
Share on other sites

You should know that Paint.net plugins cannot resize the canvas. So any plugin I come up with would simply be an import tool to get the data onto the current canvas.

FileType plugins can (and indeed have to) specify the size of the canvas...

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

Yep, got that.

I haven't yet written a filetype plugin and wasn't actually intending to boltbait.big_smile.png . I was thinking of just opening the datafile and reading the contents to the canvas.

I suppose I should give a filetype plugin a go...,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...