#!/usr/bin/env python
# coding: utf-8

# In[1]:


import os 
import numpy as np
import matplotlib.pyplot as plt


# In[14]:


def compare_list_ndarray():
    
    
    list_1=[1, "6JHAGSDJKANDA,5",'4', 8, 11]  # BROADCAST
    list_2=[2, "DYAGSDASKLAJ,1",'1141', 42, 12]  # BROADCAST
    
    print(list_1 + list_2)
    
    list_1=[1,2,3,4] # BROADCAST
    list_2=[1,2,3,4] #  "DYAGSDASKLAJ,1",'1141', 42, 12] BROADCAST 
    list_1 + list_2 + [10]
    print(list_1 + list_2 + [10])
    
    list_3=np.asarray([1,2,3,4])
    list_4=np.asarray([1,2,3,4])
    print(list_3 + list_4 + 10)
    
def get_jpeg_files():
    os.getcwd()
    os.listdir()
    path = os.getcwd()
    
    jpg_files = [f for f in os.listdir(path) if f.endswith('.jpg') ]
    return jpg_files

get_jpeg_files()
compare_list_ndarray()
get_jpeg_files()


# In[15]:


def display_two_image(im_1,im_2):
    
    plt.subplot(1,2,1)
    plt.imshow(image_1)
    plt.subplot(1,2,2)
    plt.imshow(image_2 + 30)
    
    plt.show()
    
def rotate(im_1):
    m,n,k = im_1.shape
    
    new_image=np.zeros((n,m,k), dtype = 'uint8')
    
    for i in range (m):
        for j in range(n):
            temp = image_1[i, j]
            new_image[j, i] = temp
            
    return new_image


# In[ ]:


image_1 = plt.imread('canakkale_duryolcu.jpg')
image_2 = rotate(image_1)
display_two_image(image_1, image_2)


491aa87460e76dc5b49bf27dca989f35c63d3781
<mask token>


def compare_list_ndarray():
    list_1 = [1, '6JHAGSDJKANDA,5', '4', 8, 11]
    list_2 = [2, 'DYAGSDASKLAJ,1', '1141', 42, 12]
    print(list_1 + list_2)
    list_1 = [1, 2, 3, 4]
    list_2 = [1, 2, 3, 4]
    list_1 + list_2 + [10]
    print(list_1 + list_2 + [10])
    list_3 = np.asarray([1, 2, 3, 4])
    list_4 = np.asarray([1, 2, 3, 4])
    print(list_3 + list_4 + 10)


def get_jpeg_files():
    os.getcwd()
    os.listdir()
    path = os.getcwd()
    jpg_files = [f for f in os.listdir(path) if f.endswith('.jpg')]
    return jpg_files


<mask token>


def display_two_image(im_1, im_2):
    plt.subplot(1, 2, 1)
    plt.imshow(image_1)
    plt.subplot(1, 2, 2)
    plt.imshow(image_2 + 30)
    plt.show()


def rotate(im_1):
    m, n, k = im_1.shape
    new_image = np.zeros((n, m, k), dtype='uint8')
    for i in range(m):
        for j in range(n):
            temp = image_1[i, j]
            new_image[j, i] = temp
    return new_image


<mask token>

<mask token>


def compare_list_ndarray():
    list_1 = [1, '6JHAGSDJKANDA,5', '4', 8, 11]
    list_2 = [2, 'DYAGSDASKLAJ,1', '1141', 42, 12]
    print(list_1 + list_2)
    list_1 = [1, 2, 3, 4]
    list_2 = [1, 2, 3, 4]
    list_1 + list_2 + [10]
    print(list_1 + list_2 + [10])
    list_3 = np.asarray([1, 2, 3, 4])
    list_4 = np.asarray([1, 2, 3, 4])
    print(list_3 + list_4 + 10)


def get_jpeg_files():
    os.getcwd()
    os.listdir()
    path = os.getcwd()
    jpg_files = [f for f in os.listdir(path) if f.endswith('.jpg')]
    return jpg_files


get_jpeg_files()
compare_list_ndarray()
get_jpeg_files()


def display_two_image(im_1, im_2):
    plt.subplot(1, 2, 1)
    plt.imshow(image_1)
    plt.subplot(1, 2, 2)
    plt.imshow(image_2 + 30)
    plt.show()


def rotate(im_1):
    m, n, k = im_1.shape
    new_image = np.zeros((n, m, k), dtype='uint8')
    for i in range(m):
        for j in range(n):
            temp = image_1[i, j]
            new_image[j, i] = temp
    return new_image


<mask token>
display_two_image(image_1, image_2)

<mask token>


def compare_list_ndarray():
    list_1 = [1, '6JHAGSDJKANDA,5', '4', 8, 11]
    list_2 = [2, 'DYAGSDASKLAJ,1', '1141', 42, 12]
    print(list_1 + list_2)
    list_1 = [1, 2, 3, 4]
    list_2 = [1, 2, 3, 4]
    list_1 + list_2 + [10]
    print(list_1 + list_2 + [10])
    list_3 = np.asarray([1, 2, 3, 4])
    list_4 = np.asarray([1, 2, 3, 4])
    print(list_3 + list_4 + 10)


def get_jpeg_files():
    os.getcwd()
    os.listdir()
    path = os.getcwd()
    jpg_files = [f for f in os.listdir(path) if f.endswith('.jpg')]
    return jpg_files


get_jpeg_files()
compare_list_ndarray()
get_jpeg_files()


def display_two_image(im_1, im_2):
    plt.subplot(1, 2, 1)
    plt.imshow(image_1)
    plt.subplot(1, 2, 2)
    plt.imshow(image_2 + 30)
    plt.show()


def rotate(im_1):
    m, n, k = im_1.shape
    new_image = np.zeros((n, m, k), dtype='uint8')
    for i in range(m):
        for j in range(n):
            temp = image_1[i, j]
            new_image[j, i] = temp
    return new_image


image_1 = plt.imread('canakkale_duryolcu.jpg')
image_2 = rotate(image_1)
display_two_image(image_1, image_2)

import os
import numpy as np
import matplotlib.pyplot as plt


def compare_list_ndarray():
    list_1 = [1, '6JHAGSDJKANDA,5', '4', 8, 11]
    list_2 = [2, 'DYAGSDASKLAJ,1', '1141', 42, 12]
    print(list_1 + list_2)
    list_1 = [1, 2, 3, 4]
    list_2 = [1, 2, 3, 4]
    list_1 + list_2 + [10]
    print(list_1 + list_2 + [10])
    list_3 = np.asarray([1, 2, 3, 4])
    list_4 = np.asarray([1, 2, 3, 4])
    print(list_3 + list_4 + 10)


def get_jpeg_files():
    os.getcwd()
    os.listdir()
    path = os.getcwd()
    jpg_files = [f for f in os.listdir(path) if f.endswith('.jpg')]
    return jpg_files


get_jpeg_files()
compare_list_ndarray()
get_jpeg_files()


def display_two_image(im_1, im_2):
    plt.subplot(1, 2, 1)
    plt.imshow(image_1)
    plt.subplot(1, 2, 2)
    plt.imshow(image_2 + 30)
    plt.show()


def rotate(im_1):
    m, n, k = im_1.shape
    new_image = np.zeros((n, m, k), dtype='uint8')
    for i in range(m):
        for j in range(n):
            temp = image_1[i, j]
            new_image[j, i] = temp
    return new_image


image_1 = plt.imread('canakkale_duryolcu.jpg')
image_2 = rotate(image_1)
display_two_image(image_1, image_2)

#!/usr/bin/env python
# coding: utf-8

# In[1]:


import os 
import numpy as np
import matplotlib.pyplot as plt


# In[14]:


def compare_list_ndarray():
    
    
    list_1=[1, "6JHAGSDJKANDA,5",'4', 8, 11]  # BROADCAST
    list_2=[2, "DYAGSDASKLAJ,1",'1141', 42, 12]  # BROADCAST
    
    print(list_1 + list_2)
    
    list_1=[1,2,3,4] # BROADCAST
    list_2=[1,2,3,4] #  "DYAGSDASKLAJ,1",'1141', 42, 12] BROADCAST 
    list_1 + list_2 + [10]
    print(list_1 + list_2 + [10])
    
    list_3=np.asarray([1,2,3,4])
    list_4=np.asarray([1,2,3,4])
    print(list_3 + list_4 + 10)
    
def get_jpeg_files():
    os.getcwd()
    os.listdir()
    path = os.getcwd()
    
    jpg_files = [f for f in os.listdir(path) if f.endswith('.jpg') ]
    return jpg_files

get_jpeg_files()
compare_list_ndarray()
get_jpeg_files()


# In[15]:


def display_two_image(im_1,im_2):
    
    plt.subplot(1,2,1)
    plt.imshow(image_1)
    plt.subplot(1,2,2)
    plt.imshow(image_2 + 30)
    
    plt.show()
    
def rotate(im_1):
    m,n,k = im_1.shape
    
    new_image=np.zeros((n,m,k), dtype = 'uint8')
    
    for i in range (m):
        for j in range(n):
            temp = image_1[i, j]
            new_image[j, i] = temp
            
    return new_image


# In[ ]:


image_1 = plt.imread('canakkale_duryolcu.jpg')
image_2 = rotate(image_1)
display_two_image(image_1, image_2)

