View License

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

» Watch video

Highlights from
Zoom an image by repeating pixels

1.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 1.23 KB File ID: #40591 Version: 1.0
image thumbnail

Zoom an image by repeating pixels



Zoom an image by repeating pixels first read an image then take small patch, after that enlarge it

| Watch this File

File Information

Zoom an image by repeating pixels
first read an image then take small patch, after that enlarge it to 200*200

MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
04 Mar 2013 Jan Simon

Jan Simon (view profile)

A script, which kills all formerly existing data by an initial "clear all" is not a good idea for a code published in the FEX.

The submitted code is such specific (hard coded file name and zoom factor) and inefficient (a slow loop instead of a vectorized method), that it is neither useful nor usable for others. There is no documentation and the action is near to trivial. Therefore I rate it with 1 star only.

The FileExchange is thought to share useful programs with others. It is a good strategy to submit programs, which are useful for others. What kind of programs would you like to download from here?

01 Mar 2013 Rob Campbell

Rob Campbell (view profile)

Why not just smooth the original image with interp2 then downsample? Two lines of code. There's also filter2. You've done the same thing but in 20 lines of code and used 3 nested loops. It's confusing and not well written because it doesn't make good use of the language. There are no comments and it converts to 8 bit for no reason. Also, you've created a sock-puppet account for this stuff rather than publishing under "Amarjot", as you have done previously.

People here, including me, would like to help beginners learn to code better. However, you're posting the same bad code with no modifications after at least two of us have given you advice and suggestions on virtually identical code in the past. What reaction are you expecting from the community if you have no interest in helping yourself?

Comment only

Contact us