Click here to Skip to main content
15,886,830 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Cropping, Covnerting to Gray , Gray to Black and White seems to be working fine but I have problem with Morphology - it is from Aforge Library.



VB
'MAKE OPENING MORPHOLOGY
Dim x As Bitmap = PictureBox3.Image
Dim filterOpening As New Opening()
PictureBox4.Image = filterOpening.Apply(x)

'DILATION
Dim filterDilatation As New Dilatation()               
Dim dil As Bitmap = filterDilatation.Apply(PictureBox4.Image)
PictureBox5.Image = dil


what should be the problem? I tried. Pixel Format. but it is not working.
Posted
Updated 25-Oct-15 19:26pm
v3

1 solution

finally. Found the answer here.[^]


VB
Dim bmp32bpp As Bitmap = bmp8bppIndexed.Clone _
 (New Rectangle(Point.Empty, bmp8bppIndexed.Size), _
 Imaging.PixelFormat.Format32bppArgb)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900