<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Title
Step1:  Load Image As Greyscale
Step2:  Load Image As RGB
Step3:  View Image Data
<ASSISTANT_TASK:>
Python Code:
# Load library
import cv2
import numpy as np
from matplotlib import pyplot as plt
Explanation: Title: Load Images
Slug: load_images
Summary: How to load images using OpenCV in Python.   
Date: 2017-09-11 12:00
Category: Machine Learning
Tags: Preprocessing Images  
Authors: Chris Albon
Preliminaries
End of explanation
# Load image as grayscale
image = cv2.imread('images/plane.jpg', cv2.IMREAD_GRAYSCALE)
# Show image
plt.imshow(image, cmap='gray'), plt.axis("off")
plt.show()
Explanation: Load Image As Greyscale
End of explanation
# Load image in color
image_bgr = cv2.imread('images/plane.jpg', cv2.IMREAD_COLOR)
# Convert to RGB
image_rgb = cv2.cvtColor(image_bgr, cv2.COLOR_BGR2RGB)
# Show image
plt.imshow(image_rgb), plt.axis("off")
plt.show()
Explanation: Load Image As RGB
End of explanation
# Show image data
image
# Show dimensions
image.shape
Explanation: View Image Data
End of explanation
<END_TASK>