-/* Sorry for the comments. The code will be moved in a fonction
-
- std::string x=GetPubElValByNumber(0x0028,0x1201);
- unsigned short int * lutR = (unsigned short int *)malloc((size_t)200*sizeof(short int));
- unsigned short int * lutG = (unsigned short int *)malloc((size_t)200*sizeof(short int));
- unsigned short int * lutB = (unsigned short int *)malloc((size_t)200*sizeof(short int));
-
- std::vector<std::string> tokens;
- tokens.erase(tokens.begin(),tokens.end()); // clean any previous value
- Tokenize ((const std::string)x, tokens, "\\");
- for (unsigned int i=0; i<tokens.size();i++) {
- lutR[i] = atoi(tokens[i].c_str());
- printf("%d (%x)\n",lutR[i],lutR[i]);
- }
-
- std::string y=GetPubElValByNumber(0x0028,0x1202);
- tokens.erase(tokens.begin(),tokens.end()); // clean any previous value
- Tokenize ((const std::string)y, tokens, "\\");
- for (unsigned int i=0; i<tokens.size();i++) {
- lutG[i] = atoi(tokens[i].c_str());
- }
-
- std::string z=GetPubElValByNumber(0x0028,0x1203);
- tokens.erase(tokens.begin(),tokens.end()); // clean any previous value
- Tokenize ((const std::string)z, tokens, "\\");
- for (unsigned int i=0; i<tokens.size();i++) {
- lutB[i] = atoi(tokens[i].c_str());
- }
- tokens.erase(tokens.begin(),tokens.end()); // clean any previous value
- Tokenize ((const std::string)x, tokens, "\\");
- for (unsigned int i=0; i<tokens.size();i++) {
- lutB[i] = atoi(tokens[i].c_str());
- }
-
+ return(LUTRGBA);
+}
+
+/////////////////////////////////////////////////////////////////
+/**
+ * \ingroup gdcmFile
+ * \brief Sets the Pixel Area size in the Header
+ * --> not-for-rats function
+ *
+ * \warning WARNING doit-etre etre publique ?
+ * TODO : y aurait il un inconvenient à fusionner ces 2 fonctions
+ *
+ * @param ImageDataSize new Pixel Area Size
+ * warning : nothing else is checked