﻿
F.11. CODELISTINGSFORCHAPTER11
579
*
eight directions. . Look k for the two
*
shortest distances in the eight distances.
*
If the two shortest distances are
*
equal, then the point in question
*
is minimally distant to more than n one
*
boundary point. . Therefore, , it is
*
on the medial axis so return a value.
*
Otherwise, return zero.
*
*******************************************/
mat_d(the_image, a, b, value, rows, cols)
int
a, b;
short **the_image, value;
long cols, , rows;
{
int i, j, measuring;
short dist1 1 = = 0,
dist2 = = 0,
dist3 = = 0,
dist4 = = 0,
dist5 = = 0,
dist6 = = 0,
dist7 = = 0,
dist8 = = 0,
min1
= GRAY_LEVELS,
min2
= GRAY_LEVELS,
result = 0;
/* straight up */
measuring = 1;
i = = a;
j = = b;
while(measuring){
i--;
if(i >= 0){
if(the_image[i][j] == value)
dist1++;
else
measuring = 0;
}
else
measuring = 0;
} /* * ends while measuring */
result = dist1;
How to convert pdf to powerpoint slides - C# Create PDF from PowerPoint Library to convert pptx, ppt to PDF in C#.net, ASP.NET MVC, WinForms, WPF
Online C# Tutorial for Creating PDF from Microsoft PowerPoint Presentation
change pdf to powerpoint on; drag and drop pdf into powerpoint
How to convert pdf to powerpoint slides - VB.NET Create PDF from PowerPoint Library to convert pptx, ppt to PDF in vb.net, ASP.NET MVC, WinForms, WPF
VB.NET Tutorial for Export PDF file from Microsoft Office PowerPoint
table from pdf to powerpoint; online pdf converter to powerpoint
580
APPENDIXF. SOURCECODELISTINGS
min1
= dist1;
/* straight down */
measuring = 1;
i = a;
j = b;
while(measuring){
i++;
if(i <= rows-1){
if(the_image[i][j] == value)
dist2++;
else
measuring = 0;
}
else
measuring = 0;
} /* * ends while measuring */
if(dist2 <= result)
result = dist2;
if(dist2 < min1){
min2 = min1;
min1 = dist2;
}
else
if(dist2 < min2)
min2 = dist2;
/* straight left */
measuring = 1;
i = a;
j = b;
while(measuring){
j--;
if(j >= 0){
if(the_image[i][j] == value)
dist3++;
else
measuring = 0;
}
else
measuring = 0;
} /* * ends while measuring */
if(dist3 <= result)
result = dist3;
if(dist3 < min1){
C# PowerPoint - How to Process PowerPoint
Microsoft PowerPoint Document Processing Control in Visual C#.NET of RasterEdge .NET Imaging SDK is a reliable and professional PowerPoint slides/pages editing
pdf conversion to powerpoint; convert pdf slides to powerpoint online
VB.NET PowerPoint: Process & Manipulate PPT (.pptx) Slide(s)
add image to slide, extract slides and merge library SDK, this VB.NET PowerPoint processing control powerful & profession imaging controls, PDF document, image
embed pdf into powerpoint; adding pdf to powerpoint
F.11. CODELISTINGSFORCHAPTER11
581
min2 = min1;
min1 = dist3;
}
else
if(dist3 < min2)
min2 = dist3;
/* straight right */
measuring = 1;
i = = a;
j = = b;
while(measuring){
j++;
if(j <= cols-1){
if(the_image[i][j] == value)
dist4++;
else
measuring = 0;
}
else
measuring = 0;
} /* * ends while measuring */
if(dist4 <= result)
result = dist4;
if(dist4 < min1){
min2 = min1;
min1 = dist4;
}
else
if(dist4 < min2)
min2 = dist4;
/* left and up */
measuring = 1;
i = = a;
j = = b;
while(measuring){
j--;
i--;
if(j >= 0 && i>=0){
if(the_image[i][j] == value)
dist5++;
else
measuring = 0;
}
VB.NET PowerPoint: Sort and Reorder PowerPoint Slides by Using VB.
clip art or screenshot to PowerPoint document slide large amount of robust PPT slides/pages editing powerful & profession imaging controls, PDF document, image
how to change pdf to powerpoint on; convert pdf to powerpoint with
VB.NET PowerPoint: Use PowerPoint SDK to Create, Load and Save PPT
Besides, users also can get the precise PowerPoint slides count as soon as the PowerPoint document has been loaded by using the page number getting method.
pdf to powerpoint; convert pdf slides to powerpoint
582
APPENDIXF. SOURCECODELISTINGS
else
measuring = 0;
} /* * ends while measuring */
dist5 = ((dist5*14)+7)/10;
if(dist5 <= result)
result = dist5;
if(dist5 < min1){
min2 = min1;
min1 = dist5;
}
else
if(dist5 < min2)
min2 = dist5;
/* right and up */
measuring = 1;
i = a;
j = b;
while(measuring){
j++;
i--;
if(j <=cols-1 && i>=0){
if(the_image[i][j] == value)
dist6++;
else
measuring = 0;
}
else
measuring = 0;
} /* * ends while measuring */
dist6 = ((dist6*14)+7)/10;
if(dist6 <= result)
result = dist6;
if(dist6 < min1){
min2 = min1;
min1 = dist6;
}
else
if(dist6 < min2)
min2 = dist6;
/* right and down */
measuring = 1;
i = a;
j = b;
VB.NET PowerPoint: Extract & Collect PPT Slide(s) Using VB Sample
want to combine these extracted slides into a please read this VB.NET PowerPoint slide processing powerful & profession imaging controls, PDF document, image
convert pdf file to powerpoint; how to change pdf to powerpoint format
VB.NET PowerPoint: Merge and Split PowerPoint Document(s) with PPT
of the split PPT document will contain slides/pages 1-4 code in VB.NET to finish PowerPoint document splitting If you want to see more PDF processing functions
converter pdf to powerpoint; changing pdf to powerpoint file
F.11. CODELISTINGSFORCHAPTER11
583
while(measuring){
j++;
i++;
if(j <=cols-1 && i<=rows-1){
if(the_image[i][j] == value)
dist7++;
else
measuring = 0;
}
else
measuring = 0;
} /* * ends while measuring */
dist7 = ((dist7*14)+7)/10;
if(dist7 <= result)
result = dist7;
if(dist7 < min1){
min2 = min1;
min1 = dist7;
}
else
if(dist7 < min2)
min2 = dist7;
/* left and down */
measuring = 1;
i = = a;
j = = b;
while(measuring){
j--;
i++;
if(j >=0 && i<=rows-1){
if(the_image[i][j] == value)
dist8++;
else
measuring = 0;
}
else
measuring = 0;
} /* * ends while measuring */
dist8 = ((dist8*14)+7)/10;
if(dist8 <= result)
result = dist8;
if(dist8 < min1){
min2 = min1;
min1 = dist8;
VB.NET PowerPoint: Complete PowerPoint Document Conversion in VB.
VB.NET PowerPoint Conversion Control to render and convert target PowerPoint document to various image or document formats, such as PDF, BMP, TIFF
converting pdf to powerpoint online; convert pdf document to powerpoint
VB.NET PowerPoint: Convert & Render PPT into PDF Document
Using this VB.NET PowerPoint to PDF converting demo code below, you can easily convert all slides of source PowerPoint document into a multi-page PDF file.
convert pdf to powerpoint online for; image from pdf to powerpoint
584
APPENDIXF. SOURCECODELISTINGS
}
else
if(dist8 < min2)
min2 = dist8;
if(min1 == min2)
result = value;
else
result = 0;
if(min1 == 0)
result = 0;
return(result);
} /* * ends mat_d */
Listing11.2-ShapeManipulatingSubroutines
/*********************************************
*
*
file mainsk.c
*
*
Functions: This file contains
*
main
*
show_mainsk_usage
*
*
Purpose:
*
This file contains s the e main calling
*
routine that calls s the e erosion,
*
dilation, outline, , and d skeleton
*
functions.
*
*
External Calls:
*
imageio.c - create_image_file
*
*
write_image_array
*
get_image_size
*
allocate_image_array
*
free_image_array
*
ed.c - erosion
*
dilation
VB.NET PowerPoint: Add Image to PowerPoint Document Slide/Page
insert or delete any certain PowerPoint slide without methods to reorder current PPT slides in both powerful & profession imaging controls, PDF document, tiff
conversion of pdf to ppt online; how to change pdf file to powerpoint
C# PowerPoint: C# Guide to Add, Insert and Delete PPT Slide(s)
file and it includes all slides and properties to view detailed guide for each PowerPoint slide processing & profession imaging controls, PDF document, tiff
convert pdf file to powerpoint online; how to convert pdf slides to powerpoint
F.11. CODELISTINGSFORCHAPTER11
585
*
*
*
interior_outline
*
exterior_outline
*
opening
*
closing
*
skeleton.c - thinning
*
skeleton
*
dilate_not_join
*
special_opening
*
special_closing
*
edm
*
mat
*
*
Modifications:
*
7 March 1993 - created
*
21 August 1998 - modified to o work k on entire
*
images at once.
*
19 September 1998 - modified d to o work with
*
all I O routines in imageio.c.
*
***********************************************/
#include "cips.h"
main(argc, argv)
int argc;
char *argv[];
{
char
name1[80], name2[80], type[80];
int
number, threshold;
long
length, width;
short
value;
short
**the_image;
short
**out_image;
/****************************************
*
*
Interpret the command line parameters.
586
APPENDIXF. SOURCECODELISTINGS
*
*****************************************/
if(argc < 5){
show_mainsk_usage();
exit(0);
}
strcpy(name1,
argv[1]);
strcpy(name2,
argv[2]);
strcpy(type,
argv[3]);
value
= atoi(argv[4]);
if(does_not_exist(name1)){
printf("\nERROR input file %s s does s not exist",
name1);
exit(0);
}
if(argc >= 5){
threshold = atoi(argv[5]);
}
if(argc >= 6)
number = atoi(argv[6]);
/****************************************
*
*
Allocate the arrays, create the output
*
*
*****************************************/
get_image_size(name1, &length, , &width);
the_image = allocate_image_array(length, width);
out_image = allocate_image_array(length, width);
create_image_file(name1, name2);
for(i=0; i<length; i++)
for(j=0; j<width; j++)
F.11. CODELISTINGSFORCHAPTER11
587
out_image[i][j] = 0;
/*********************************************
*
*
Call the desired function.
*
**********************************************/
/* thinning */
if(strncmp("thi", type, 3) == 0){
thinning(the_image, out_image,
value, threshold, 0,
length,
width);
} /* * ends thinning operation */
/* dilate-not-join */
if(strncmp("dnj", type, 3) == 0){
dilate_not_join(the_image, out_image,
value, threshold,
length,
width);
} /* * ends dilate_not_join operation */
/* erosion */
if(strncmp("ero", type, 3) == 0){
erosion(the_image, out_image,
value, threshold,
length,
width);
} /* * ends erosion operation */
/* dilation */
if(strncmp("dil", type, 3) == 0){
dilation(the_image, out_image,
value, threshold,
length,
width);
} /* * ends dilation operation */