View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Halftoning and dithering

2.0 | 3 ratings Rate this file 7 Downloads (last 30 days) File Size: 1.45 KB File ID: #30550 Version: 1.0
image thumbnail

Halftoning and dithering



small code for half toning of gray scale images. please give your feedback about it.

| Watch this File

File Information

Halftoning using the BAYER's matrix for grayscale images.

Bayers Matrix size can be 2x2,4x4,8x8,16x16


Required Products Image Processing Toolbox
MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
11 Jul 2016 DGM

There are vastly simpler ways to do an ordered dither. I like that the coefficient matrix size is parametric, but why calculate all of them first? Why not only calculate the one that's selected?

Also, everything after the user input and matrix generation can be replaced with two lines: replication of the coefficient matrix (and trimming), and then a relational comparison.

Also, cat() doesn't work like that... but that's okay, because the nonsensical RGB image 'out' is never used anyway. /shrug

Comment only
18 Dec 2012 Pan Ou

Pan Ou (view profile)

15 May 2012 Will Reeves

28 Feb 2011 Sean de

Sean de (view profile)

-malware script that begins with clear all; clc
-imreads an image we don't have
-uses four nested for-loops
-doesn't run anyway
-no help/description/h1 line/comments etc.
-function name is misspelled after its perceived function.

This script as written is completely useless.

Contact us