linyu0425

@linyu0425

Joined on Jul 10, 2023

  • contributed by <linyu0425> Environment OS : ubuntu 22.04 Install the dependent packages $ sudo apt install build-essential verilator gtkwave Installing sbt from SDKMAN $ sdk install java $(sdk list java | grep -o "\b8\.[0-9]*\.[0-9]*\-tem" | head -1)
     Like  Bookmark
  • contributed by <linyu425> Choose a Question Problem: I chose the Convert RGB image into grayscale by using RV32I ISA from 張正德 Motivation: Because his topic also applies to problem C, and the grayscale image conversion is interesting. The origin code ::: spoiler C code #include <stdio.h>
     Like  Bookmark
  • contributed by <linyu425> Image scaling with Bilinear interpolation by float32 If we want to obtain the value of the unknown function f at the point $P = (x,y)$ , assuming we know the values of function f at four points $Q_{11} = (x_{1},y_{1})$, $Q_{12} = (x_{1},y_{2})$, $Q_{21} = (x_{2},y_{1})$, and $Q_{22} = (x_{2},y_{2})$ . First, perform linear interpolation in the x-direction, :::success $f(x,y_1)≈\dfrac{x_2-x}{x_2-x_1}f(Q_{11})+\dfrac{x-x_1}{x_2-x_1}f(Q_{21})$ $f(x,y_1)≈\dfrac{x_2-x}{x_2-x_1}f(Q_{12})+\dfrac{x-x_1}{x_2-x_1}f(Q_{22})$ :::
     Like  Bookmark