CSE1PES: PROGRAMMING FOR ENGINEERS AND SCIENTISTS
ASSIGNMENT 3
Ordinance exposed by Matthew Felicetti 2016, updated 2017(MF), updated 2018(MF & JM), updated
2019(MF)
TOOLS
• Unix server through Putty control compiling and touchstoneing
• Referable attributable attributableepad ++ control answerableness resolutions
• LMS control yielding
SUBMISSION
• The method o Complyted as a .c polish in the typical ordinance yielding gate. (Do referable attributable attributable attributable comply the executable.)
ACADEMIC INTEGRITY
Plagiarism is the yielding of colossus else’s composition in a deportment that gives the percussion that the composition is your confess. Control single ordinances, plagiarism apprehends the fact where span or over wards composition collaboratively on the ordinance. The School of Engineering and Mathematics treats plagiarism very seriously. When it is detected, penalties are strictly imposed. https://www.essaybishop.com/write-my-essay/latrobe.edu.au/students/academic-integrity
IMAGE PROCESSING
BACKGROUND
This program gain discharge irrelative operations on visions spablushing as Bitmaps. (production .bmp)
The extinguishedput polishs control this ordinance are bmp, and future you gain need to unconcealed the results in windows or on macOS using a befitting vision editor.
If you neglect to infer your confess visions you can excluding they must be 24-bit Bitmaps, and the width of the vision*3 must be separable by 4
PROBLEM
The program gain discharge the controlthcoming irrelative operations on visions:
Imprint vision advice – Imprint a abstract of the vision properties
Spare a observation of an vision – Load and spare a observation of an vision
Transmute Brilliancy – Constitute vision lighter or darker
Remove agent – Remove either the blushing, bluish or crude components of an vision
Quantize – Blushinguce the sum of colours in an vision
Invert – Invert integral the colours in an vision
Flip Horizontally – Flip the vision horizontally
Crop – Cut a minority extinguished of the vision to constitute a fantastic vision
Please referable attributable attributablee this is referable attributable attributable attributable the imaginary resolution, excluding individual adapted to touchstone your knowledge of multitudinous headics.
FUNCTION PROTOTYPES AND INCLUDES
1. You must apprehend the stdio.h, stdlib.h and string.h libraries
2. Infer the controlthcoming macro
3. The controlthcoming structs are to be truthd
4. The controlthcoming employment prototypes are to be truthd:
a. Integral are picturesquely under
b. You can transmute the naming
c. You canreferable attributable transmute the types
FUNCTIONS – 20
Each employment is picturesquely by a irrelative muniment. These muniments can be institute on LMS or the links under.
First immodest employments grasp unconcealeding a polish and imprinting the advice in the polish, constitute infallible to touchstone and eninfallible these are compositioning precedently constant.
FUNCTION – MAIN
FUNCTION – LOAD_IMAGE
FUNCTION – FREE_RGB_PIXELS
FUNCTION – PRINT_INFORMATION _IMAGE
The contiguous span employments grasp saving to a polish, constitute infallible to touchstone and eninfallible these are compositioning precedently constant.
FUNCTION – SAVE_IMAGE
FUNCTION – SAVE_COPY_IMAGE
The contiguous span employments are control changing the brilliancy, constitute infallible to touchstone and eninfallible these are compositioning precedently constant.
FUNCTION – CHANGE_LUMINOSITY_IMAGE
FUNCTION – CHANGE_LUMINOSITY_PIXELS
The contiguous immodest employments are control removing a agent, constitute infallible to touchstone and eninfallible these are compositioning precedently constant.
FUNCTION – REMOVE_CHANNEL_IMAGE
FUNCTION – REMOVE_RED_PIXELS
FUNCTION – REMOVE_GREEN_PIXELS
FUNCTION – REMOVE_BLUE_PIXELS
The contiguous span employments are control inverting the vision, constitute infallible to touchstone and eninfallible these are compositioning precedently constant.
FUNCTION – INVERT_IMAGE
FUNCTION – INVERT_PIXELS
The contiguous span employments are control quantizing the vision, constitute infallible to touchstone and eninfallible these are compositioning precedently constant. THESE FUNCTIONS ARE MORE DIFFICULT
FUNCTION – QUANTIZE_IMAGE
FUNCTION – QUANTIZE_PIXELS
The contiguous span employments are control quantizing the vision, constitute infallible to touchstone and eninfallible these are compositioning precedently constant. THESE FUNCTIONS ARE MORE DIFFICULT
FUNCTION – FLIP_HORIZONTAL_IMAGE
FUNCTION – FLIP_HORIZONTAL_PIXELS
The contiguous span employments are control cropping the vision, constitute infallible to touchstone and eninfallible these are compositioning precedently constant. THESE FUNCTIONS ARE VERY DIFFICULT, ONLY ATTEPT IF YOU HAVE TIME AND UNDERSTANDING
FUNCTION – CROP_IMAGE
FUNCTION – RE_ALLOCATE_PIXELS CONSTRAINTS
• You are solely integralowed to apprehend the stdio.h, stdlib.h and string.h header polishs. No others. Do referable attributable attributable attributable truth conio.h
• You canreferable attributable truth goto statements.
• Controlmatting can be transmuted if the truthr interface is truthr affectionate
• Quotation to truthr needs to be easily understandable. You can transmute the quotation excluding the identical inputs must be truthd.
• The program must imimprint YOUR ward sum, call and the ordinance sum as exact.
• The program must imimprint the password as exact.
• The method must be dindividual using ANSI C and soothe on latcs5.cs.latrobe.edu.au using gcc • Method must referable attributable attributable attributable clash or keep the immanent to clash due to stack redundancy or segmentation fault
• Types should be truthd right.
• Mutables should be scant to an mismismisspend occasion
• You must truth comments to decipher indicative lines of method. Peruse munimentation guide
• You must truth comments to decipher how to truth the employments and resolution
HINTS
• The method should be abextinguished 400 – 600 lines of method withextinguished the boon (withextinguished comments). If your method is indicatively larger you may neglect to reconsider your arrival.
SUBMISSION
Part 1.
Solve the tenor by implementing a program using C method.
EXAMPLES
Given on LMS, ordinance tab
RUBRIC
Automatic Deductions
• Truth of goto minus 40 marks
• No ward sum minus 100 marks
• No password minus 100 marks
• Apprehends header polishs extinguishedside of stdio.h, stdlib.h and string.h minus 60 marks
main – 5 points
Main menu exits, selects employment and repeats unexceptionably 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 1
Many or superior mistakes 2
Some mistakes 2
Implemented unexceptionably
Functions are denominated unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. (employment referable attributable attributable attributable implemented can be commented extinguished) 1
Implemented unexceptionably
Menu is truthr affectionate 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
load_vision – 14 points
struct RGB_Vision is truthd unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
concat is truthd unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
funconcealed denominated unexceptionably, and
if polish referable attributable attributable attributable institute imprints missive to truthr and income 1 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
fseek denominated unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
header advice is peruse and is stoblushing right 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Dynamic retention is created unexceptionably 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 1
Many or superior mistakes 2
Some mistakes 5
Implemented unexceptionably
Pixels are peruse and stoblushing unexceptionably 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 1
Many or superior mistakes 2
Some mistakes 3
Implemented unexceptionably
Polish is secretive unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
free_pixels – 2 poi nts
rows are freed unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Row pointers are freed unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
print_information_vision – 4 points
load_vision denominated unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Advice imprinted unexceptionably 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 1
Many or superior mistakes 2
Some mistakes 3
Implemented unexceptionably
save_vision – 10 points
strcpy is truthd unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 2
Implemented unexceptionably
funconcealed denominated unexceptionably control answerableness 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Header advice amend 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Pixels are written unexceptionably to the polish 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 1
Many or superior mistakes 2
Some mistakes 3
Implemented unexceptionably
Polish is secretive unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
save_copy_vision – 5 points
load_vision employment denominated unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
save_vision employment denominated unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 2
Implemented unexceptionably
Vision polish is copied unexceptionably (cohibit polish) 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Retention is freed 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
change_luminosity_vision , transmute_luminosity_pixels – 8 points
Brilliancy smooth scanned from truthr unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Concatenation of polish call dischargeed unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 2
Implemented unexceptionably
change_luminosity_pixels denominated unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Brilliancy transmuted unexceptionably, explicit, disclaiming,
limits (cohibit polish) 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 1
Many or superior mistakes 2
Some mistakes 4
Implemented unexceptionably
remove_channel_image, remove_red_pixels, remove_green_pixels, remove_blue_pixels – 7 points
Menu implemented
unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Concatenation of polish call dischargeed unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
The three pixel employments are denominated unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Colour is removed from vision (cohibit polish) 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 1
Many or superior mistakes 2
Some mistakes 4
Implemented unexceptionably
invert_image, invert_pixels – 5 points
Invert_vision employment is implemented unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Pixels are inverted unexceptionably (cohibit polish) 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 1
Many or superior mistakes 2
Some mistakes 4
Implemented unexceptionably
quantize_image, quantize_pixels – 6 points
Menu implemented
unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Concatenation of polish call dischargeed unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Images are quantized unexceptionably (cohibit polish) 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 1
Many or superior mistakes 2
Some mistakes 4
Implemented unexceptionably
flip_horizontal_pixels, flip_horizontal_image– 8 points
Images are flipped unexceptionably (cohibit polish) 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 2
Many or superior mistakes 6
Some mistakes 8
Implemented unexceptionably
crop_image, re_allocate_pixels – 7 points
Realloc truthd unexceptionably 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Members updated
unexceptionably – including polish magnitude, width and culmination 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 1
Implemented unexceptionably
Integral retention freed unexceptionably with no retention leaks 0
Does referable attributable attributable attributable soothe, referable attributable attributable attributable undertakeed or any mistakes. 4
Implemented unexceptionably
Images is cropped unexceptionably (cohibit polish) 0
Does referable attributable attributable attributable soothe or referable attributable attributable attributable undertakeed. 1
Implemented unexceptionably
Integral – 20 points
Is the method unexceptionably subordinate? 0
The method is referable attributable attributable attributable subordinate or very diseased subordinate, or failure of undertake 1
Several errors in indenting. 2
Method is subordinate right.
Are mutables calld right 0
Variables are calld diseased, or failure of undertake 1
Variables are calld consistently control the method. 3
Variables are calld consistently control the method and the estate.
Are mutables scant to an mismismisspend occasion? 0
Any globals truthd, or failure
of undertake 1
Variables are referable attributable attributable attributable scant to an mismismisspend occasion. 3
Variables are scant to an mismismisspend occasion.
Are mismismisspend mutable types truthd where misappropriate? 0
Integral mutables are declablushing as the largest types, or failure of undertake 1
Some types are referable attributable attributable attributable befitting. 2
Integral mutable types are befitting.
Is there no unsafe bearing 0
Unsafe bearing, or failure of undertake
5
Method does referable attributable attributable attributable clash or keep the immanent to clash due to stack
redundancy or segmentation fault
Comment at the head of the method decipher implementation and mind. And befitting comments throughextinguished the method. 0
No comments 2
Poor comments 3
Reasonable comments 5
Excellent munimentation

~~~For this or similar assignment papers~~~