Tag: complement

How to find Negative of Image in Matlab

How to find Negative of Image in Matlab

A negative is an image in which the lightest areas of the photographed subject appear darkest and the darkest areas appear lightest. This reversed order occurs because the extremely light-sensitive chemicals a camera film must use to capture an image quickly enough for ordinary picture-taking are darkened. Basically, In the Negative image, we subtract each … Continue reading How to find Negative of Image in Matlab

Advertisements
2’s Complement of number in Assembly – masm 8086

2’s Complement of number in Assembly – masm 8086

org 100h .stack 100h .data var DW 1111111100001111b .code ;Intilization of Data Segment mov ax,@DATA mov DS,ax ;First find 1's complement not var ;Add 1 to 1's complement of number inc var ;to terminate program mov ah,4ch int 21h ret