Find Jobs
Hire Freelancers

Load and store *.pnm image file

$10-30 USD

Complété
Publié il y a plus de 8 ans

$10-30 USD

Payé lors de la livraison
Write two functions to load and store binary (types P5 and P6) “*.pnm” image files in your favorite language/package out of C++, Java, Python or Matlab. Load function should generate an Image structure (or an object). The image structure should contain following. Image type : an integer value specifying the image type. Values Gray = 0 and RGB = 1 width : an integer value specifying the width of the image. height : an integer value specifying the width of the image. data : a byte array of image data (stored in row major order). For simplicity you can assume second header line is always a comment. And max value is always 255 (i.e. 8 bit images). For full pnm file format specification, refer [login to view URL] Following software can be used to view pnm images. Also it allows you to convert any image to pnm format (for testing purposes). [login to view URL] In addition to ImageJ, the open source software GIMP also can open PNM format image files. For example following C++ code shows the headers of required functions. struct Image { int type; // an integer value specifying the image type. Values // Gray = 0 and RGB = 1 int width; // an integer value specifying the width of the image. int height; // an integer value specifying the height of the image. char* data; // an 8-bit array of image data (row major). }; Image loadImage(string fileName); void storeImage(string fileName, Image img);
N° de projet : 9413452

Concernant le projet

1 proposition
Projet à distance
Actif à il y a 8 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
Décerné à :
Avatar de l'utilisateur
As discussed. As discussed. As discussed. As discussed. As discussed. As discussed. As discussed. As discussed.
$50 USD en 1 jour
5,0 (51 commentaires)
5,8
5,8

À propos du client

Drapeau de UNITED STATES
Indianapolis, United States
5,0
14
Méthode de paiement vérifiée
Membre depuis avr. 14, 2015

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.