| New Reply |
How to create a bitmap image |
Share Thread | Thread Tools |
| Jun24-12, 12:19 AM | #1 |
|
|
How to create a bitmap image
I am trying to create a nano - size pyramid using an FIB - Focused Ion Beam Microscope. The way it works is, it takes a 1000 x 1000 pixel bitmap image as an input. Each pixel is in gray scale. At the start we input a maximum value: lets say we set 'black' as 100 nm. If the pixel is black, then the FIB drills a hole that is a 100 nm deep. If the pixel is say only 40% black, then it drills a hole that is 40 nm deep. If the pixel is white, then it is left alone. So if I need to create a cone, then the bitmap image for the cone would look like a white dot at the centre and grayscale circle extending out from it with increasing tone of black. I hope you get this.
The question that I have is this. How do I create a bitmap image to this specification? I know that Matlab, photoshop etc does create bitmap images, but I need clear, step by step instructions. I have tried other informational pages but I am usually lost on some basic issue. Any help will be greatly appreciated |
| Jun24-12, 09:12 AM | #2 |
|
|
First you need to decide what image format you want to use. There are a lot of them(.bmp, .dib, .gif, .png, ...) Is there an existing program for the FIB that reads bitmap images? If so, what format does it ask for? If not and you need to write this, what format do you want to use? Once you've decided this, you need to write or adapt a program to write the images in this format. Programs like MATLAB or Mathematica will handle the details for you - if you want to write it from scratch, you need to obtain the image format specification and write something that conforms to it. Here's an example starting point.
http://en.wikipedia.org/wiki/.png |
| Mar26-13, 09:09 PM | #3 |
|
|
Developed as a raster graphics image file format, BMP (full name: Bitmap) is the standard image file format on Microsoft Windows operating systems. BMP can be divided into two types: Device Dependent Bitmap (DDB) file format and Device Independent Bitmap (DIB) file format.So, which bitmap do you want to creat? And if you wanna see more detail of creating bitmap, check the professional open source site.
|
| Mar27-13, 01:16 AM | #4 |
|
|
How to create a bitmap image
In Mathematica theres an easy way to do this:
1. Define your function. So for a pyramid I use: Code:
F[x_, y_] := 2 ( (Abs[(1/2 - x)] + Abs[1/2 - y])) G[x_,y_]:= If[F[x, y] > 1, 1, F[x, y]] 2. Build the table of values, I do: Code:
pix = 1000; (*Define the number of pixels along each axis *)
data=Table[G[x,y], {x, 1/pix, 1, 1/pix}, {y, 1/pix, 1, 1/pix}]
3. Convert it to an image, and export it. I do this in one step: Code:
Export["C:\\test.bmp", Image[data, ImageResolution -> pix, Magnification -> 1], ImageResolution -> pix] And it should export the bitmap. It might seem like its hanging, but just give it some time without clicking anything, it should eventually spit it out. Remember, a 1000x1000 bitmap without compression is about 3 megs.
|
| New Reply |
| Tags |
| bitmap, image processing, matlab, nanoengineering, pixel |
| Thread Tools | |
Similar Threads for: How to create a bitmap image
|
||||
| Thread | Forum | Replies | ||
| how photons create an image via the brain | General Physics | 10 | ||
| bitmap/jpeg to vector convertor | Math & Science Software | 2 | ||
| Make a Bitmap B&W | Programming & Comp Sci | 6 | ||
| Bitmap Manipulating Code in C | Programming & Comp Sci | 1 | ||