<gh_stars>10-100
# Author: <NAME>
# email: <EMAIL>
from PIL import Image
import numpy as np

import init_paths
from image_processing import rgb2bgr
from xinshuo_visualization import visualize_image

def test_rgb2bgr():
	print('test input image as jpg')
	image_path = '../lena.jpg'
	img = Image.open(image_path).convert('RGB')
	visualize_image(img, vis=True)
	bgr_img = rgb2bgr(img)
	visualize_image(bgr_img, vis=True)

	print('test input image as png')
	image_path = '../lena.png'
	img = Image.open(image_path).convert('RGB')
	visualize_image(img, vis=True)
	bgr_img = rgb2bgr(img)
	visualize_image(bgr_img, vis=True)

	print('\n\nDONE! SUCCESSFUL!!\n')

if __name__ == '__main__':
	test_rgb2bgr()

# Author: <NAME>
# email: <EMAIL>
from PIL import Image
import numpy as np

import init_paths
from image_processing import rgb2bgr
from xinshuo_visualization import visualize_image

def test_rgb2bgr():
	print('test input image as jpg')
	image_path = '../lena.jpg'
	img = Image.open(image_path).convert('RGB')
	visualize_image(img, vis=True)
	bgr_img = rgb2bgr(img)
	visualize_image(bgr_img, vis=True)

	print('test input image as png')
	image_path = '../lena.png'
	img = Image.open(image_path).convert('RGB')
	visualize_image(img, vis=True)
	bgr_img = rgb2bgr(img)
	visualize_image(bgr_img, vis=True)

	print('\n\nDONE! SUCCESSFUL!!\n')

if __name__ == '__main__':
	test_rgb2bgr()
# Author: <NAME> # email: <EMAIL>