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 months 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 months 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 months 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 months 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 months 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 months ago

Solved

Perimeter of a semicircle

Given the diameter d, find the perimeter of a semicircle

7 months 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 months ago

Solved

radius of a spherical planet

You just measured its surface area, that is the input.

7 months ago

Solved

Pi Estimate 1

Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

7 months ago

Solved

Calculate area of sector

A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

7 months ago

Solved

Make blocks of color

Given a (Nx3) sequence of RGB colors, I want to create a (numRowBlocks x numColBlocks x 3) image comprising (blockSize x blockSi...

7 months ago

Solved

Convert RGB triplet to ColorSpec string

This is the inverse to <http://www.mathworks.com/matlabcentral/cody/problems/42612-convert-colorspec-string-to-rgb-triplet this ...

7 months ago

Solved

Convert this color - RGB Vector to Hex String

Given a 3 element RGB vector corresponding to a color (given by the MATLAB color spec <http://www.mathworks.com/help/matlab/ref/...

7 months ago

Solved

Change a specific color in an image

The ability to change colors can be a useful tool in image processing. Given an m x n x 3 array (much like CData in images), fin...

7 months ago

Solved

Convert ColorSpec string to RGB triplet

Given a ColorSpec string, either in short or long form, return the corresponding RGB triplet. If the input is not a valid color,...

7 months ago