Skip to content

Instantly share code, notes, and snippets.

View Marcellofabrizio's full-sized avatar
:shipit:

Marcello Fabrizio Marcellofabrizio

:shipit:
  • A company
  • A place
View GitHub Profile
from PIL import Image
import sys
import os
def convert_jpeg_to_png(input_directory, output_directory):
if not os.path.exists(output_directory):
os.makedirs(output_directory)
for filename in os.listdir(input_directory):
if filename.lower().endswith(('.jpg', '.jpeg')):
from PIL import Image
import sys
import os
import numpy as np
def create_empty_label_masks(input_directory, output_directory):
if not os.path.exists(output_directory):
os.makedirs(output_directory)
for filename in os.listdir(input_directory):
@Marcellofabrizio
Marcellofabrizio / avlTree.cpp
Created March 17, 2021 01:56
AVL Tree in C++. Did this in a rush for an assigment, so if this is usefull to you, please help improving it so it could be helpful to others too!
#include <iostream>
using namespace std;
class Node {
public:
int value;
int height;
Node* left;
Node* right;