Re: store infor as a image?



You are right, that's what I need. But,, what image files have pixel
longer than 8 bits? thank you for answering this BASIC question.

Shufei


Martin Leese wrote:
shufei.fan wrote:
My question is: does anyone know how to store information of a image
into a image?
To be specific, I segmented my grey(or color) image into a collection
of non-overlapping small regions, each given a unique label. I want to
store the label of each pixel, into a suitable file. And I assume image
file should be a good option. My question comes from here. in image,
each pixel is 0-255, but for the value of labels, I have to allow
larger range ( a pixel should be assigned value 543 if it belongs to
label No. 543).

If I have understood your problem, your labels
are just integer numbers (as opposed to, say,
text strings). So use an image file where each
pixel is longer than 8 bits (so can store a
larger range than 0-255).

--
Regards,
Martin Leese
E-mail: please@xxxxxxxxxxxxxxxxxxxxxxxxxx
Web: http://members.tripod.com/martin_leese/

.



Relevant Pages

  • Re: DrPostman: Degenerate Mother Insultor
    ... MANY IMAGE FILES CAN BE PASSWORD PROTECTED. ... please explain this amazing technology. ... >IMAGE FILES CAN EASILY BE COPIED BY ANY MORON, ... pixel by pixel... ...
    (sci.astro)
  • Re: richard heathfield
    ... No, as Arthur explains, you need pixel values, and these aren't ... obvious in most hex dumps of image files (in many cases, ... it's pretty easy to read the RGB pixel colors. ...
    (comp.programming)
  • Re: Fontheigt = Zeilenhöhe
    ... danke für den Tip mit dem Label - geht aber nicht, ... Was das "fotografieren" und auszählen der Pixel angeht: ... Feldinhalte breiter als die Breite der Editbox -> "überlauf"... ...
    (microsoft.public.de.fox)
  • Re: Label Caption Truncates
    ... destination label / textbox EXCEPT: ... Having said that, reading the TextWidth of a string by placing it in a Autosize Label Control with the Label set to the desired font attributes and reading the resultant Width of the Label is one of the many available ways of effectively reading the TextWidth of the string, although of course it will only return the correct size if the text is going to be displayed or drawn onto another screen object and not onto something else with different characteristics, such as a printer. ... It should be remembered though that the TextWidth function tells you the width of the "row of character cells" that the string will occupy when printed, and so if actual printed width is important to you (the distance between the leftmost pixel plotted and the rightmost pixel plotted) then you need to take other things into account as I mentioned in my earlier response, because the actual printed pixel width can be either smaller or greater than the TextWidth, depending on the font used and the specific characters used at the left and right ends of the string. ...
    (microsoft.public.vb.general.discussion)
  • Re: Can nobody help me???
    ... That means that in each pixel should be a single scalar value and not the color. ... If your goal was just to store binary data corresponding to the label, ... Lrgb = imread; ... I am now avoiding replying to unclear or ambiguous postings. ...
    (comp.soft-sys.matlab)