LAB Report Instruction
File Submission
If the submitted program does not run, it will not be graded. γ
Please follow the file names as specified below
If the submitted file name differs even by one character, you will get penalty points.
File name:
DLIP_LAB1_yourID_yourName.* (*.cpp, *.pdf, *.zip, etc..)
Example: DLIP_LAB1_21900123_GilDongHong.*
The following files must be included in the zip file.
Submit all files as one zip file.
Example: DLIP_LAB1_21900123_GilDongHong.zip
(a) Report
*.pdf and *.md files
if you attached a local image to the md file, please also submit the image used in .
(b) Program code and data file
*.cpp, *.h
Do not submit the entire folder of solutions and projects
NO Submit: *.sin, *.vcxproj, Property sheet files γ etc
(c) Image/data file
images must be in the 'project folder' , the same folder as the main source file
Example)
src = imread("Lab_GrayScale_TestImage.jpg"); (O)
src = imread("../images/Lab_GrayScale_TestImage.jpg"); (X) γ
Comment on Source Code
Please make the main() function as concise with high readability.
It's not a good idea to write all of your algorithms within the main() function
Modulize your algorithms as functions.
You can define your functions within your library/header
Write comments to briefly describe what each function/line does
It is a good practice to describe the code with comments.
β» λ°λμ μ μΆνμΌμ λ€μ΄λ‘λ λ°μ μλ‘μ΄ νλ‘μ νΈμμ μ μμ μΌλ‘ ꡬλλλμ§ νμΈ λ°λλλ€.β» μ μΆν νλ‘κ·Έλ¨μ΄ μ½λ© μμ λ¬Έμ λ‘ μ€νμ΄ λμ§ μλ κ²½μ°, μ±μ λμμμ μ μΈλ©λλ€
1) μ μΆκ³Όμ μ ν΅μΌμ±μ μν΄ μ μΆ νμΌλͺ λ° νμ₯μ ννλ₯Ό μλμ κ°μ΄ μ§μ νμ€λ λ°λμ μμνμκΈ° λ°λλλ€. μ μΆλ νμΌλͺ μ΄ λ¬Έμ νλλΌλ λ€λ₯Ό κ²½μ° κ°μ νκ² μ΅λλ€.
- νμΌλͺ : DLIP_LAB1_νλ²_μ±λͺ (볡μ¬νλ κ²μ΄ κ°μ₯ νμ€ν©λλ€)(μμ: DLIP_LAB1_21900123_νκΈΈλ)
- νμ₯μ: zip μΌλ‘ μμΆνμ¬ μ μΆ β» μ λ λ κ³Όμ κ°μ μ¬λ‘ : νλ² νκΈ° μ€λ₯ / κ³Όμ λ²νΈ νκΈ° μ€λ₯ / ν νμ₯μλ‘ μμΆ λ±
2) μ μΆνλ μμΆνμΌ λ΄μλ μλ νμΌλ€μ΄ ν¬ν¨λμ΄μΌ ν©λλ€.
- λ³΄κ³ μ(.pdf λ° .md νμΌ λͺ¨λ μ μΆ / Typora νμΌ->λ΄λ³΄λ΄κΈ°λ₯Ό ν΅ν΄ pdf μμ± κ°λ₯)
Β· mdνμΌμ local imageλ₯Ό 첨λΆν κ²½μ° μ¬μ©λ imageλ μ μΆλ°λλλ€.
- κ³Όμ μνμ μ¬μ©λ νλ‘κ·Έλ¨ μ½λ(.c/cpp λ° *.h)
- νλ‘κ·Έλ¨ λΉλλ₯Ό μν μ΄λ―Έμ§νμΌ (Lab_GrayScale_TestImage.jpg)
β» μ μΆ κΈμ§ λͺ©λ‘(μ λ μ μΆνμ§ λ§μΈμ)
a) κ³Όμ μμ μνν μ루μ λ° νλ‘μ νΈ μ 체 ν΄λ
b) μ루μ νμΌ(*.sin), νλ‘μ νΈ νμΌ(*.vcxproj)
c) μμ±μνΈ νμΌ
3) νλ‘κ·Έλ¨ μ μΆμ imread() κ²½λ‘λ₯Ό μΆκ°μ μΈ μλκ²½λ‘κ° μλλ‘ μ§μ λ°λλλ€.
- νμλ§λ€ μ΄λ―Έμ§λ₯Ό λΆλ¬μ€κΈ°μν κ°κΈ° λ€λ₯Έ μλκ²½λ‘λ₯Ό μ κ° μΌμΌμ΄ νμ /μμ νμ¬ λΉλν μ μμ΅λλ€. - λ°λΌμ μ μΆμμλ μλμ μμμ κ°μ΄ 'νλ‘μ νΈ ν΄λ'μ μλ μ΄λ―Έμ§λ‘ λΉλκ°λ₯νλλ‘ νμ‘° λΆνλ립λλ€.
μμ) src = imread("Lab_GrayScale_TestImage.jpg"); (O)
src = imread("../../images/Lab_GrayScale_TestImage.jpg"); (X)
4) main λ¬Έμ μ΅λν κΉλνκ² μμ±νμ¬ μ μΆλ°λλλ€.
- λ©μΈν¨μ λ΄μμ λͺ¨λ μκ³ λ¦¬μ¦μ μννλ κ²μ μ’μ§ μμ΅λλ€.
- κ°λ₯ν κ° κΈ°λ₯λ³λ‘ ν¨μλ₯Ό λ§λ€κ³ λ©μΈν¨μλ κ·Έκ²λ€μ μ’ ν©μ μΌλ‘ μ΄μ©ν ννλ‘ μ μΆλ°λλλ€
5) μ£Όμμ κ° ν¨μλ³λ‘ μ΄λ€ κΈ°λ₯μ μννλμ§ κ°λ¨ν μμ±λ°λΌλ©°, λ³ΈμΈμ΄ νΉμ΄ν μκ³ λ¦¬μ¦μ ꡬμνμ¬ ν¨μλ₯Ό ꡬννμ κ²½μ° line by lineμΌλ‘ μμΈν κΈ°μ¬λ°λλλ€.γ
β» λ°λμ μ μΆνμΌμ λ€μ΄λ‘λ λ°μ μλ‘μ΄ νλ‘μ νΈμμ μ μμ μΌλ‘ ꡬλλλμ§ νμΈ λ°λλλ€.
β» μ μΆν νλ‘κ·Έλ¨μ΄ μ½λ©μμ λ¬Έμ λ‘ μ€νμ΄ λμ§ μλ κ²½μ°, μ±μ λμμμ μ μΈλ©λλ€.
Last updated