This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Original code from the series on image processing in python | |
## Read the tutorial at https://thesourcecodenotes.blogspot.com/2021/07/image-processing-in-python-4-grey-level.html | |
from PIL import Image, ImageTk | |
import tkinter as tk | |
def histogram(input_image): | |
if input_image.mode != 'L' and input_image.mode != 'P': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Original code from the series on image processing in python | |
## Read the tutorial at https://thesourcecodenotes.blogspot.com/search/label/contrast-stretching | |
from PIL import Image, ImageTk | |
import tkinter as tk | |
def contrast(input_image, value): | |
if input_image.mode != 'L' and input_image.mode != 'P': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Original code from the series on image processing in python | |
## Read the tutorial at https://thesourcecodenotes.blogspot.com/search/label/brightness | |
from PIL import Image, ImageTk | |
import tkinter as tk | |
def brightness(input_image, value): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Original code from the series on image processing in python | |
## Read the tutorial at https://thesourcecodenotes.blogspot.com/2021/07/image-processing-in-python.html | |
from PIL import Image, ImageTk | |
import tkinter as tk | |
def rgb2gray(input_image): | |
if input_image.mode != 'RGB': | |
return None | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Source code for blog post http://thesourcecodenotes.blogspot.co.uk/2015/09/imaage-processing-in-c-enbossing-filter.html | |
The code is an implementation of an embossing filter in c for PPM images. | |
by Antonio Molinaro, 2015. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Source code for blog post http://thesourcecodenotes.blogspot.co.uk/2015/09/create-image-and-pixel-structure-for.html | |
The code creates a 256x256 PPM image with a white background and only one red pixel located in the center of it. | |
by Antonio Molinaro, 2015. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct { |