the task of smoothing or sharpening. Therefore, we need a flexible ROF hardware to arbitrarily select wanted rank values into the operation procedure of LUM filter and we have proposed an architecture based on a maskable memory for rank-order filtering. The maskable memory structure, called dual-cell random-access memory (DCRAM), is an extended SRAM structure with maskable registers and dual cells. This dissertation is the first literature using maskable memory to realize ROF. Driving by the generic rank-order filtering algorithm, the memory-based architecture features high degree of flexibility and regularity while the cost is low and the performance is high. This architecture can be applied for arbitrary ranks and a variety of ROF applications, including recursive and non-recursive algorithms. Except efficiently eliminating annoying impulsive noises and enhance sharpness for GI images, the processing speed of ROF can also meet the real-time image applications. 2. GICam image compressor 2.1 The review of GICam image compression algorithm Instead of applying state-of-the-art video compression techniques, we proposed a simplified image compression algorithm, called GICam. Traditional compression algorithms employ the YCbCr quantization to earn a good compression ratio while the visual distortion is minimized, based on the factors related to the sensitivity of the human visual system (HVS). However, for the sake of power saving, our compression rather uses the RGB quantization (15) to save the computation of demosaicking and color space transformation. As mentioned above, the advantage of applying RGB quantization is twofold: saving the power dissipation on preprocessing steps and reducing the computing load of 2-D DCT and quantization. Moreover, to reduce the hardware cost and quantization power dissipation, we have modified the RGB quantization tables and the quantization multipliers are power of two's. In GICam, the Lempel-Ziv (LZ) coding (18) is employed for the entropy coding. The reason we adopted LZ coding as the entropy coding, is because the LZ encoding does not need look-up tables and complex computation. Thus, the LZ encoding consumes less power and uses smaller silicon size than the other candidates, such as the Huffman encoding and the arithmetic coding. The target compression performance of the GICam image compression is to reduce image size by at least 75%. To meet the specification, given the quantization tables, we exploited the cost-optimal LZ coding parameters to meet the compression ratio requirement by simulating with twelve tested endoscopic pictures shown in Fig.3. When comparing the proposed image compression with the traditional one in (11), the power consumption of GICam image compressor can save 98.2% because of the reduction of memory requirement. However, extending the utilization of battery life for a capsule endoscope remains an important issue. The memory access dissipates the most power in GICam image compression. Therefore, in order to achieve the target of extending the battery li...