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: 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)
  • GDI and visual c++ problem...
    ... 1)Does anynone know how can I display the pixel value and the pixel format of ... a bitmap file ?I want for example to load a bitmap in a picture box and ... 2)How can I change a form propertie (for example a label) by a class that is ...
    (microsoft.public.dotnet.languages.vc)

Loading