tomato salad and guacamole

Solved

Hilbert numbers

Given a positive integer, n, return h as follows: 1. If n is not a <https://en.wikipedia.org/wiki/Hilbert_number Hilbert numb...

3 days ago

Solved

Lah Numbers

Create a square lower diagonal matrix containing the first n Lah number coefficients. In mathematics, the Lah numbers are coeffi...

3 days ago

Solved

Nth roots of unity

First, find the n nth roots of unity. eg if n = 6, find the n distinct (complex) numbers such that n^6 = 1. <https://en.wiki...

3 days ago

Solved

Compute the dilation of a binary image

A basic operation in image analysis is the dilation. Given an image where each pixel is either on or off (black/white, true/fals...

7 days ago

Solved

Index of neighbor pixel with steepest gradient

Unlike in various applications, where the gradient of a two dimensional matrix is calculated in x and y direction, the gradient ...

7 days ago

Solved

2D - Mean Filter

Assume you are given an "image" matrix of size NxM. Reduce the image noise by implementing a mean filter window of size 9 (a 3x3...

7 days ago

Solved

Sum of the pixel values for the blue color

Calculate the sum of the pixel values for the blue color, with a picture as an input. *NOTE:* The picture will be provided as...

7 days ago

Solved

Create an 8-color version of an image

This problem was inspired by a tweet I saw from @MATLAB regarding <http://www.mathworks.com/matlabcentral/fileexchange/37816-the...

7 days ago

Solved

Create different color vectors.

When producing figures with multiple lines on, you often want the lines to all be visible and different colors. Given the need f...

7 days ago

Solved

Perimeter of a semicircle

Given the diameter d, find the perimeter of a semicircle

7 days ago

Solved

Given a square and a circle, please decide whether the square covers more area.

You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

7 days ago