Sir, I need to do some XOR operation with the outputs of dwt with some chaotic sequence.But I'm unable to process the same with output of XOR.But I'm unable to do anything with that otherthan applying IDWT with that. Any solution sir.
To do logical operation like Xor, you need logical data in 1's and 0's. Dwt coefficients are real numbers not logical so u cannot do XOR with dwt coefficients.
Sir i'm getting the error "invalid shape for image data" and when its running the horizintal and diagnol coeficients are not highlighting ths horizintal and diagnol elements
Sir, I've applied the following algorithm for image encryption using DWT. But there is a mismatch b/w encrypted and decrypted image.I've tried a ot but didn't get the mistake. #Encryption 1.Original image 1.First DWT decomposition applied in order to generate LL1,LH1,HL1,HH1 coefficients 2. Displace LL1 by Multiplying Detail coefficients (LL1=LL1×LH1× HL1×HH1) 3. Second DWT decomposition is applied Over LL1 in order to generate LL2,LH2,HL2,HH2 coefficients 4. Displace LL2 by Multiplying Detail coefficients LL2=LL2×LH2× HL2×HH2 5. Diminish Second DWT approximation Coefficients with Dividing by Image Dimension LL2=LL2/(M×N) 6.Reverse the sign of second DWT detail coefficients (-LH2,-HL2,-HH2) 7. Displace Second Coefficient HH2 With LL2 And HL2 With LH2 8.Diminish second DWT Coefficients by Dividing with Image Dimension LL2=LL2/(M×N) 9. Reverse the sign of second DWT detail coefficients -LH2,-HL2, -HH2 10. Displace second DWT Coefficients HH2 With LL2 And HL2 With LH2 11. Apply the Inverse DWT (IDWT) to the second DWT coefficients 12. Multiply by chaotic Matrix 13.encrypted image #Decryption 1.Encrypted Image 2.Dividing by chaotic matrix(used as secret-key) 3. First DWT transform 4. Second DWT decomposition in order to generate LL2,LH2,HL2, HH2 5. Divide second DWT approximation coefficients by detail coefficients 6. Multiply second DWT approximation coefficients by image size LL2=LL2× (M×N) 7.Reverse the sign of second DWT approximation coefficients LL2= -LL2 ultiplying Second DWT 8. Multiplying Second DWT high frequency Coefficients sub-band by Image Dimensions HH2=HH2×(M×N) 9. Applying the Inverse DWT (IDWT) 10. Displace LL1 with Dividing by Detail coefficients LL1=LL1/ (LH1×HL1×HH1) 11. Applying the Inverse DWT (IDWT) 12. Original Image
You have to break color image into R, G, B frames and then u can apply DWT on each frame. You can use other color spaces such as Y, Cb, Cr or Y, U, V etc depending on requirements.
Thanks for this video. Very intuitive. I've learnt something new today.
Much thanks sir!
many many thanks sir.easy explanation
Thanks! This helped me.
Subscribe and share
Thankyou sir Your explanation is very nice
thanks you!!!. I have a question , 18:30. How to calculate filter length?
Thanks sir
Sir, I need to do some XOR operation with the outputs of dwt with some chaotic sequence.But I'm unable to process the same with output of XOR.But I'm unable to do anything with that otherthan applying IDWT with that. Any solution sir.
To do logical operation like Xor, you need logical data in 1's and 0's. Dwt coefficients are real numbers not logical so u cannot do XOR with dwt coefficients.
@@exploringtechnologies9 thankyou sir
@@athulraj3023 or, you could convert your coeffs to binary, do your bitwise ops and convert back to floats
@@davesabra4320 thankyou sir
Sir i'm getting the error "invalid shape for image data" and when its running the horizintal and diagnol coeficients are not highlighting ths horizintal and diagnol elements
Check image dimensions. I have taken grayscale images for analysis. If it is color image, then analyse separately for R, G, B frames.
Sir, I'm getting this error for coloured image.
TypeError: Invalid shape (810, 270, 2) for image data
Check your input imgae. If grayscale, it should be (810,270) and for RGB color, it should be (810,270,3). It cannot be 810X270X2.
Sir, I've applied the following algorithm for image encryption using DWT. But there is a mismatch b/w encrypted and decrypted image.I've tried a ot but didn't get the mistake.
#Encryption
1.Original image
1.First DWT decomposition applied in order to generate LL1,LH1,HL1,HH1 coefficients
2. Displace LL1 by Multiplying Detail coefficients (LL1=LL1×LH1× HL1×HH1)
3. Second DWT decomposition is applied Over LL1 in order to generate LL2,LH2,HL2,HH2 coefficients
4. Displace LL2 by Multiplying Detail coefficients LL2=LL2×LH2× HL2×HH2
5. Diminish Second DWT approximation Coefficients with Dividing by Image Dimension LL2=LL2/(M×N)
6.Reverse the sign of second DWT detail coefficients (-LH2,-HL2,-HH2)
7. Displace Second Coefficient HH2 With LL2 And HL2 With LH2
8.Diminish second DWT Coefficients by Dividing with Image Dimension LL2=LL2/(M×N)
9. Reverse the sign of second DWT detail coefficients -LH2,-HL2, -HH2
10. Displace second DWT Coefficients HH2 With LL2 And HL2 With LH2
11. Apply the Inverse DWT (IDWT) to the second DWT coefficients
12. Multiply by chaotic Matrix
13.encrypted image
#Decryption
1.Encrypted Image
2.Dividing by chaotic matrix(used as secret-key)
3. First DWT transform
4. Second DWT decomposition in order to generate LL2,LH2,HL2, HH2
5. Divide second DWT approximation coefficients by detail coefficients
6. Multiply second DWT approximation coefficients by image size LL2=LL2× (M×N)
7.Reverse the sign of second DWT approximation coefficients LL2= -LL2
ultiplying Second DWT
8. Multiplying Second DWT high frequency Coefficients sub-band by Image Dimensions HH2=HH2×(M×N)
9. Applying the Inverse DWT (IDWT)
10. Displace LL1 with Dividing by Detail coefficients LL1=LL1/ (LH1×HL1×HH1)
11. Applying the Inverse DWT (IDWT)
12. Original Image
What differences u r getting between the two?
@@exploringtechnologies9 decrypted image looks like an encrypted image
Bro can I contact you I also work on same project
Sir how can I use this code for color images
You have to break color image into R, G, B frames and then u can apply DWT on each frame. You can use other color spaces such as Y, Cb, Cr or Y, U, V etc depending on requirements.
Sir, it's great if the link of the coding file available
Try to write code by your own. I have explained the code in video. Pause the screen, take snapshot and get printouts.
Hi, can I have the image file?
Go to my website,
www.exptech.co.in
Go to Resource download.