Harvey wrote:
> The hint tutor provided is :
> 1...
> 2...
> I've got no idea how to mapping the pixels.
For those 2 tasks at first step you do not need any FPGA, just a sheet
of paper and "brain 1.0".
> 1. first segment the image into 4*4 blocks and then mapping them to a
> 3*3 blocks.
Arrange the image in 4x4 blocks means you have to spilt up the 100x100
pixels in 25x25 of 4x4 pixel blocks.
And then you nust find a method to recalculate a 3x3 block out of a 4x4
block. Lets assume we have a simple b&w picture and lets say B are the
Pixels of the BIG array, ans S are the pixels of the SMALL array:
1 | B00 B01 B02 B03
|
2 | S00 S01 S02
|
3 | B10 B11 B12 B13
|
4 | S10 S11 S12
|
5 | B20 B21 B22 B23
|
6 | S20 S21 S22
|
7 | B30 B31 B32 B33
|
So, S00 consists of a mean value from the pixels B00, B01, B10 and B11:
S00 = (B00+B01+B10+B11)/4
If you have three colors (24 bit = 3*8 bit) you must find an adequate
method to sum up each of the colors.
> 2. Writing a LUT to achieve mapping method.
A simple straightforward LUT for a pixel ist fairly big, as it has to be
addressed by 96 bits (4*24bits: e.g. B00&B01&B10&B11) and the output is
24 bits (e.g. S00). So you will hav to find a way to reduce the input
vector before sccessing the LUT.
All in all it is NOT a job for a beginner. And it is NOT done this day.
Harvey wrote:
> Recently I was doing a project on FPGA in Verilog or VHDL
What have you done with an FPGA before this? How did you start FPGA
design? Did you already do the flashing LED, the "Hello world!" of
hardware? Did you implement some interfaces (RS232, SPI,...) to get
known to your HDL?