Questions tagged [ppm]

PPM is a pixmap image format used by the Netpbm library and other graphics software.

Portable Pixel Map (PPM) is a simple format for 24-bit color images.

The format allows data to be stored in either ASCII or binary format. PPM is the native format of the Netpbm graphics library and the format is described on the Netpbm web site. It is part of a family of formats including , , and , collectively tagged (the original name for what is now the Netpbm library).

280 questions
-1
votes
2 answers

Rotation Matrix PBMfile Haskell

Possible Duplicate: Rotate Image .pbm Haskell i need help about a rotation matrix in haskell i have 2 data type: data RGBdata= RGB Int Int Int data PBMfile= PBM Int Int [[RGBdata]] and my function receive: spin :: PBMfile -> PBMfile spin (PBM x…
user495943
  • 13
  • 3
-1
votes
2 answers

Rotate Image .pbm Haskell

i need help about a rotation or spin matrix in haskell i have a list of list, of a data type RGB: data RGBdata= RGB Int Int Int m = [[(RGB 0 255 255),(RGB 255 0 0)],[(RGB 255 255 255),(RGB 255 0 0)]] to be seen better i have a matrix 2x2: m =…
user495943
  • 13
  • 3
-2
votes
1 answer

Converting a PPM from RGB to HSL in C__

I have some code samples in C. I need to do the histogram equalization. However, I need to forward step by step. I was stucked in first step. First step is to convert the file from RGB to YCbCr.So, I will share the codes with you. All codes that…
-2
votes
1 answer

Changing hex to int in python

I have a PPM file, which is in the P6 format. THe P6 format of the same image will store each color component of each pixel with one byte (thus three bytes per pixel) in the RGB order. I have converted a PNG image in Python to get the PPM image.…
user4017041
  • 113
  • 1
  • 1
  • 8
-3
votes
1 answer

combing red green and blue files to make a .ppm file in a C programme

i currently have 3 files, a red, a green and blue component file(s) and i need to code a program that will combine these three files into a single readable ppm file. how/whats the best route for me to take for this? thanks Sam
-3
votes
1 answer

C - Need help swapping red and green components

This code (which I edited from code I found on a previous Stack Overflow question) is able to take the input of a ppm image and output the same image, but with all of the colors complementary. In my assignment, I am asked to do this, but then to…
Austin
  • 73
  • 1
  • 5
-4
votes
2 answers

How to change RGB values in c++

I apologize for the a question that may be considered "newbie," but I just started learning how to use c++. I know how to read and write text files, but if I want to open an image file, will it be the same as opening a normal text file, or is it…
Aaron
  • 3
  • 4
-5
votes
1 answer

what does the *& mean in :void setData(const Color * & data_ptr);

This is probably a dumb question but since i am new to programming and especially c++ i figured i would ask here.I have the following method inside a class: /*! Copies the image data from an external raw buffer to * the internal image buffer. * …
-5
votes
1 answer

Reading Files in Python

I have a file that i want to use python to read it with. The file is in the following format: 12 45 45 78 56 45 67 09 12 45 How can i append all these numbers into a list?!! For example: x = [12,45,45,78,56,45,67,09,12,45] I am trying .strip() and…
Luke
  • 41
  • 1
  • 7
-6
votes
1 answer

Converting a PPM from RGB to HSL in C

I need a help about histogram equalization in RGB image files for my academic coursework. I checked my previous code samples about histogram equalization and I did not find any clue about this issue. I've never practiced a histogram equalization…
1 2 3
18
19