README.rst 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. IPFML
  2. =====
  3. Image Processing For Machine Learning package.
  4. How to use ?
  5. ------------
  6. To use, simply do::
  7. >>> from PIL import Image
  8. >>> from ipfml import image_processing
  9. >>> img = Image.open('path/to/image.png')
  10. >>> s = image_processing.get_LAB_L_SVD_s(img)
  11. Modules
  12. -------
  13. This project contains modules.
  14. - **img_processing** : *PIL image processing part*
  15. - fig2data(fig): *Convert a Matplotlib figure to a 3D numpy array with RGB channels and return it*
  16. - fig2img(fig): *Convert a Matplotlib figure to a PIL Image in RGB format and return it*
  17. - get_LAB_L_SVD_U(image): *Returns U SVD from L of LAB Image information*
  18. - get_LAB_L_SVD_s(image): *Returns s (Singular values) SVD from L of LAB Image information*
  19. - get_LAB_L_SVD_V(image): *Returns V SVD from L of LAB Image information*
  20. - divide_in_blocks(image, block_size): Divide image into equal size blocks
  21. - **metrics** : *Metrics computation of PIL image*
  22. - get_SVD(image): *Transforms PIL Image into SVD*
  23. - get_SVD_U(image): *Transforms PIL Image into SVD and returns only 'U' part*
  24. - get_SVD_s(image): *Transforms PIL Image into SVD and returns only 's' part*
  25. - get_SVD_V(image): *Transforms PIL Image into SVD and returns only 'V' part*
  26. - get_LAB(image): *Transforms PIL Image into LAB*
  27. - get_LAB_L(image): *Transforms PIL Image into LAB and returns only 'L' part*
  28. - get_LAB_A(image): *Transforms PIL Image into LAB and returns only 'A' part*
  29. - get_LAB_B(image): *Transforms PIL Image into LAB and returns only 'B' part*
  30. - get_XYZ(image): *Transforms PIL Image into XYZ*
  31. - get_XYZ_X(image): *Transforms PIL Image into XYZ and returns only 'X' part*
  32. - get_XYZ_Y(image): *Transforms PIL Image into XYZ and returns only 'Y' part*
  33. - get_XYZ_Z(image): *Transforms PIL Image into XYZ and returns only 'Z' part*
  34. - **ts_model_helper** : *contains helpful function to save or display model information and performance of tensorflow model*
  35. - save(history, filename): *Function which saves data from neural network model*
  36. - show(history, filename): *Function which shows data from neural network model*
  37. All these modules will be enhanced during development of the project
  38. How to contribute
  39. -----------------
  40. This git project uses git-flow_ implementation. You are free to contribute to it.
  41. .. _git-flow : https://danielkummer.github.io/git-flow-cheatsheet/